GesGripPointerEvent.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using UnityEngine;
  2. using UnityEngine.EventSystems;
  3. namespace Rokid.UXR.Interaction
  4. {
  5. /// <summary>
  6. /// Gesture ray enters,grip gesture type triggers
  7. /// </summary>
  8. public interface IGesGripPointerEnter
  9. {
  10. void OnGesGripPointerEnter();
  11. }
  12. /// <summary>
  13. /// Gesture ray exits,grip gesture type triggers
  14. /// </summary>
  15. public interface IGesGripPointerExit
  16. {
  17. void OnGesGripPointerExit();
  18. }
  19. /// <summary>
  20. /// Gesture Ray drag starts,grip gesture type triggers
  21. /// </summary>
  22. public interface IGesGripBeginDrag
  23. {
  24. void OnGesGripBeginDrag(PointerEventData eventData);
  25. }
  26. /// <summary>
  27. /// Gesture ray drag ends,grip gesture type triggers
  28. /// </summary>
  29. public interface IGesGripEndDrag
  30. {
  31. void OnGesGripEndDrag();
  32. }
  33. /// <summary>
  34. /// Gesture ray drag,grip gesture type triggers
  35. /// </summary>
  36. public interface IGesGripDrag
  37. {
  38. void OnGesGripDrag(Vector3 delta);
  39. }
  40. /// <summary>
  41. /// The gesture ray is hovering and the grip type is triggered
  42. /// </summary>
  43. public interface IGesGripPointerHover
  44. {
  45. void OnGesGripPointerHover(RaycastResult result);
  46. }
  47. /// <summary>
  48. /// Gesture ray click,grip gesture type trigger
  49. /// </summary>
  50. public interface IGesGripPointerClick
  51. {
  52. void OnGesGripPointerClick();
  53. }
  54. }