InputDeviceKSPart.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.InputDeviceGC.KS {
  8. public class InputDeviceKSPart : InputDeviceGCPart {
  9. public InputDeviceKS inputDeviceKS {
  10. get { return Transition<InputDeviceKS>(inputDeviceBase); }
  11. }
  12. public InputDeviceKSPartUI inputDeviceKSPartUI {
  13. get { return Transition<InputDeviceKSPartUI>(inputDevicePartUIBase); }
  14. }
  15. public KSDetector bT3DofDetector {
  16. get { return Transition<KSDetector>(detectorBase); }
  17. }
  18. private PostureType mPostureType = PostureType.UnKown;
  19. public override PostureType PostureType {
  20. get {
  21. return mPostureType;
  22. }
  23. set {
  24. mPostureType = value;
  25. }
  26. }
  27. public InputDataKS inputDataKS {get; set;}
  28. public InputDataGetKS inputDataGetKS { get; set; }
  29. public InputDeviceKSPartStatus inputDevicePartStatusKS { get; set; }
  30. public InputDevicePartDispatchEventKS inputDevicePartDispatchEventKS { get; set; }
  31. protected override void ModuleCreater() {
  32. inputDataBase = inputDataGC = inputDataKS = new InputDataKS(this);
  33. inputDataGetBase = inputDataGetGC = inputDataGetKS = new InputDataGetKS(this);
  34. inputDevicePartStatusBase = inputDevicePartStatusGC = inputDevicePartStatusKS = new InputDeviceKSPartStatus(this);
  35. inputDevicePartDispatchEventBase = inputDevicePartDispatchEventGC = inputDevicePartDispatchEventKS = new InputDevicePartDispatchEventKS(this);
  36. }
  37. }
  38. }