InputDeviceKSPart.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. [SerializeField]
  19. private PostureType mPostureType = PostureType._6Dof;
  20. public override PostureType PostureType {
  21. get {
  22. return mPostureType;
  23. }
  24. set {
  25. mPostureType = value;
  26. }
  27. }
  28. public InputDataKS inputDataKS {get; set;}
  29. public InputDataGetKS inputDataGetKS { get; set; }
  30. public InputDeviceKSPartStatus inputDevicePartStatusKS { get; set; }
  31. public InputDevicePartDispatchEventKS inputDevicePartDispatchEventKS { get; set; }
  32. protected override void ModuleCreater() {
  33. inputDataBase = inputDataGC = inputDataKS = new InputDataKS(this);
  34. inputDataGetBase = inputDataGetGC = inputDataGetKS = new InputDataGetKS(this);
  35. inputDevicePartStatusBase = inputDevicePartStatusGC = inputDevicePartStatusKS = new InputDeviceKSPartStatus(this);
  36. inputDevicePartDispatchEventBase = inputDevicePartDispatchEventGC = inputDevicePartDispatchEventKS = new InputDevicePartDispatchEventKS(this);
  37. }
  38. }
  39. }