TouchEvent.cs 1.0 KB

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