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