123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace bbiwarg.Recognition.TouchRecognition
- {
- /// <summary>
- /// The type of the touch event.
- /// </summary>
- public enum TouchEventType
- {
- Down,
- Move,
- Up
- }
- /// <summary>
- /// Represents a touch event (typ+touch)
- /// </summary>
- public class TouchEvent
- {
- /// <summary>
- /// the type of the touch event
- /// </summary>
- public TouchEventType Type { get; private set; }
- /// <summary>
- /// the touch of the touch event
- /// </summary>
- public Touch Touch { get; private set; }
- /// <summary>
- /// Initializes a new instance of the TouchEvent class.
- /// </summary>
- /// <param name="type">The type.</param>
- /// <param name="touch">The touch.</param>
- public TouchEvent(TouchEventType type, Touch touch)
- {
- Type = type;
- Touch = touch;
- }
- }
- }
|