using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; namespace SC.XR.Unity.Module_InputSystem.InputDeviceGC.KS { public class InputDataKS : InputDataGC { public InputDeviceKSPart inputDeviceKSPart; public InputDataKS(InputDeviceKSPart inputDeviceKSPart) : base(inputDeviceKSPart) { this.inputDeviceKSPart = inputDeviceKSPart; } public KSIndex ksIndex { get { if(inputDeviceKSPart.PartType == InputDevicePartType.KSLeft) { return KSIndex.Left; } else if(inputDeviceKSPart.PartType == InputDevicePartType.KSRight) { return KSIndex.Right; } return KSIndex.UnKnow; } } public class HallData { public int deviceID; public int HallFoward; public int HallInside; } public static List TempHallDataList = new List(); public int HallFoward = 10; public int HallInside = 10; public class BatteryPowerData { public int deviceID; public int BatteryPower; } public static List TempBatteryPowerDataList = new List(); public int BatteryPower; public class JoystickData { public int deviceID; public int JoystickX; public int JoystickY; } public static List TempJoystickDataList = new List(); public int JoystickX = 8; public int JoystickY = 8; public class ChargingData { public int deviceID; public bool isCharging; } public static List TempChargingDataList = new List(); public bool isCharging; public class StatusData { public int deviceID; public bool isConnected; } public static List StatusDataList = new List(); } }