TouchEvent.cs 533 B

123456789101112131415161718192021222324252627
  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. public enum TouchEventType
  9. {
  10. Down,
  11. Move,
  12. Up
  13. }
  14. public class TouchEvent
  15. {
  16. public TouchEventType Type { get; private set; }
  17. public Touch Touch { get; private set; }
  18. public TouchEvent(TouchEventType type, Touch touch)
  19. {
  20. Type = type;
  21. Touch = touch;
  22. }
  23. }
  24. }