TouchEvent.cs 953 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. namespace BBIWARG.Recognition.TouchRecognition
  2. {
  3. /// <summary>
  4. /// The type of the touch event.
  5. /// </summary>
  6. public enum TouchEventType
  7. {
  8. Down,
  9. Move,
  10. Up
  11. }
  12. /// <summary>
  13. /// Represents a touch event (type+touch)
  14. /// </summary>
  15. public class TouchEvent
  16. {
  17. /// <summary>
  18. /// the touch of the touch event
  19. /// </summary>
  20. public Touch Touch { get; private set; }
  21. /// <summary>
  22. /// the type of the touch event
  23. /// </summary>
  24. public TouchEventType Type { get; private set; }
  25. /// <summary>
  26. /// Initializes a new instance of the TouchEvent class.
  27. /// </summary>
  28. /// <param name="type">The type.</param>
  29. /// <param name="touch">The touch.</param>
  30. public TouchEvent(TouchEventType type, Touch touch)
  31. {
  32. Type = type;
  33. Touch = touch;
  34. }
  35. }
  36. }