InputDataBT3Dof.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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.BT3Dof {
  8. public class InputDataBT3Dof : InputDataGC {
  9. public InputDeviceBT3DofPart inputDeviceBT3DofPart;
  10. public InputDataBT3Dof(InputDeviceBT3DofPart inputDeviceBT3DofPart) : base(inputDeviceBT3DofPart) {
  11. this.inputDeviceBT3DofPart = inputDeviceBT3DofPart;
  12. }
  13. public BT3DofIndex index {
  14. get {
  15. if (inputDeviceGCPart.PartType == InputDevicePartType.GCOne) {
  16. return BT3DofIndex.BT3DofOne;
  17. } else if (inputDeviceGCPart.PartType == InputDevicePartType.GCTwo) {
  18. return BT3DofIndex.BT3DofTwo;
  19. }
  20. return BT3DofIndex.UnKnow;
  21. }
  22. }
  23. public class StatusData {
  24. public int deviceID;
  25. public bool isConnected;
  26. }
  27. public static List<StatusData> StatusDataList = new List<StatusData>();
  28. }
  29. }