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 override void OnSCDisable() { base.OnSCDisable(); TempHallDataList.Clear(); BatteryPowerEventDataList.Clear(); KeyTouchDataList.Clear(); TempJoystickDataList.Clear(); ChargingEventDataList.Clear(); StatusDataList.Clear(); TouchPanelDataList.Clear(); } public class HallData { public int deviceID; public int HallFoward; public int HallInside; } public static List TempHallDataList = new List(); public class BatteryPowerData { public int deviceID; public int BatteryPower; } public static List BatteryPowerEventDataList = new List(); public class KeyTouchData { public int deviceID; public int keycode; public bool touch; } public static List KeyTouchDataList = new List(); public class JoystickData { public int deviceID; public int JoystickX; public int JoystickY; } public static List TempJoystickDataList = new List(); public class ChargingEventData { public int deviceID; public bool isCharging; } public static List ChargingEventDataList = new List(); public class StatusData { public int deviceID; public bool isConnected; } public static List StatusDataList = new List(); public class TouchPanelData { public int deviceID; public float x; public float y; public int action; } public static List TouchPanelDataList = new List(); } }