InputDevicePartDispatchEventHand.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using UnityEngine;
  7. namespace SC.XR.Unity.Module_InputSystem.InputDeviceHand {
  8. public class InputDevicePartDispatchEventHand : InputDevicePartDispatchEventBase {
  9. public InputDeviceHandPart inputDeviceHandPart;
  10. public InputDeviceHandPartCatchEvent inputDeviceHandPartCatchEvent;
  11. public InputDeviceHandPartLeftRightEvent inputDeviceHandPartLeftRightEvent;
  12. public InputDeviceHandPartTurnLeftRightEvent inputDeviceHandPartTurnLeftRightEvent;
  13. public InputDeviceHandPartFaceHead inputDeviceHandPartFaceHead;
  14. public InputDeviceHandPartFaceFlatHead inputDeviceHandPartFaceFlatHead;
  15. public InputDeviceHandPartStaticEvent inputDeviceHandPartStaticEvent;
  16. public InputDeviceHandPartDynamicClickEvent inputDeviceHandPartDynamicClickEvent;
  17. public InputDeviceHandPartDynamicOpenEvent inputDeviceHandPartDynamicOpeenEvent;
  18. public InputDeviceHandPartDynamicFlipEvent inputDeviceHandPartDynamicFlipEvent;
  19. public InputDevicePartDispatchEventHand(InputDeviceHandPart inputDeviceHandPart) : base(inputDeviceHandPart) {
  20. this.inputDeviceHandPart = inputDeviceHandPart;
  21. eventList.Add(inputDeviceHandPartStaticEvent = new InputDeviceHandPartStaticEvent(this));
  22. eventList.Add(inputDeviceHandPartDynamicClickEvent = new InputDeviceHandPartDynamicClickEvent(this));
  23. eventList.Add(inputDeviceHandPartDynamicOpeenEvent = new InputDeviceHandPartDynamicOpenEvent(this));
  24. eventList.Add(inputDeviceHandPartDynamicFlipEvent = new InputDeviceHandPartDynamicFlipEvent(this));
  25. eventList.Add(inputDeviceHandPartCatchEvent = new InputDeviceHandPartCatchEvent(this));
  26. eventList.Add(inputDeviceHandPartFaceHead = new InputDeviceHandPartFaceHead(this));
  27. eventList.Add(inputDeviceHandPartFaceFlatHead = new InputDeviceHandPartFaceFlatHead(this));
  28. //eventList.Add(inputDeviceHandPartFaceHeadCatch = new InputDeviceHandPartFaceHeadCatch(this));
  29. //eventList.Add(inputDeviceHandPartLeftRightEvent = new InputDeviceHandPartLeftRightEvent(this));
  30. //eventList.Add(inputDeviceHandPartTurnLeftRightEvent = new InputDeviceHandPartTurnLeftRightEvent(this));
  31. }
  32. }
  33. }