HandEvent.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. namespace Rokid.UXR.Interaction
  2. {
  3. public class HandEventConst
  4. {
  5. public const string OnHandHoverBegin = "OnHandHoverBegin";
  6. public const string OnHandHoverUpdate = "OnHandHoverUpdate";
  7. public const string OnHandHoverEnd = "OnHandHoverEnd";
  8. public const string OnGrabbedToHand = "OnGrabbedToHand";
  9. public const string OnGrabbedUpdate = "OnGrabbedUpdate";
  10. public const string OnReleaseFromHand = "OnReleasedFromHand";
  11. public const string OnParentHoverEnd = "OnParentHoverEnd";
  12. public const string OnParentHoverBegin = "OnParentHoverBegin";
  13. public const string OnHandFocusAcquired = "OnHandFocusAcquired";
  14. public const string OnHandFocusLost = "OnHandFocusLost";
  15. }
  16. public interface IHandHoverBegin
  17. {
  18. void OnHandHoverBegin(Hand hand);
  19. }
  20. public interface IHandHoverUpdate
  21. {
  22. void OnHandHoverUpdate(Hand hand);
  23. }
  24. public interface IHandHoverEnd
  25. {
  26. void OnHandHoverEnd(Hand hand);
  27. }
  28. public interface IParentHoverBeing
  29. {
  30. void OnParentHandHoverBegin();
  31. }
  32. public interface IParentHoverEnd
  33. {
  34. void OnParentHoverEnd();
  35. }
  36. public interface IGrabbedToHand
  37. {
  38. void OnGrabbedToHand(Hand hand);
  39. }
  40. public interface IGrabbedUpdate
  41. {
  42. void OnGrabbedUpdate(Hand hand);
  43. }
  44. public interface IReleasedFromHand
  45. {
  46. void OnReleasedFromHand(Hand hand);
  47. }
  48. }