public InputDataGetBT3Dof(InputDeviceBT3DofPart inputDeviceBT3DofPart) : base(inputDeviceBT3DofPart) { this.inputDeviceBT3DofPart = inputDeviceBT3DofPart; dataGetOneList.Add(inputDataGetGCPosture = inputDataGetBT3DofPosture = new InputDataGetBT3DofPosture(this)); dataGetOneList.Add(inputDataGetGCKey = inputDataGetBT3DofKey = new InputDataGetBT3DofKey(this)); dataGetOneList.Add(inputDataGetGCTouch = inputDataGetBT3DofTouch = new InputDataGetBT3DofTouch(this)); dataGetOneList.Add(inputDataGetGCIMU = inputDataGetBT3DofIMU = new InputDataGetBT3DofIMU(this)); }
protected virtual bool UpdateDeviceInfo(InputDeviceBT3DofPart part, bool isClear = false) { if (isClear == true) { part.inputDataGC.GCType = GCType.Null; part.inputDataGC.GCName = ""; part.inputDataGC.SoftVesion = -1; DebugMy.LogError("UpdateDeviceInfo Clear!", this); return(false); } BT3DofIndex index = part.inputDataBT3Dof.index; if (index != BT3DofIndex.BT3DofOne && index != BT3DofIndex.BT3DofTwo) { DebugMy.LogError("UpdateDeviceInfo Error:" + index, this); return(false); } try { string typeFlag = AndroidPluginBase.ObjectFunctionCall <string>(AndroidPluginBT3Dof.BT3DofManager, "getManufacturerModel", (int)index); if (K07Name == typeFlag) { part.inputDataGC.GCType = GCType.K07; } else if (K02Name == typeFlag) { part.inputDataGC.GCType = GCType.K02; } else { part.inputDataGC.GCType = GCType.K02; } if (part.inputDataGC.GCType != GCType.K02 && part.inputDataGC.GCType != GCType.K07) { DebugMy.LogError("UpdateDeviceInfo Error:" + part.inputDataGC.GCType, this); return(false); } part.inputDataGC.GCName = part.inputDataGC.GCType.ToString(); part.inputDataGC.SoftVesion = 0; DebugMy.Log("UpdateDeviceInfo : " + " isConnected: " + part.inputDataGC.isConnected + " GCName: " + part.inputDataGC.GCName + " SoftVesion: " + part.inputDataGC.SoftVesion , this, true); } catch (Exception e) { Debug.Log(e); } return(true); }
public InputDevicePartDispatchEventBT3Dof(InputDeviceBT3DofPart inputDeviceBT3DofPart) : base(inputDeviceBT3DofPart) { this.inputDeviceBT3DofPart = inputDeviceBT3DofPart; }
public InputDataBT3Dof(InputDeviceBT3DofPart inputDeviceBT3DofPart) : base(inputDeviceBT3DofPart) { this.inputDeviceBT3DofPart = inputDeviceBT3DofPart; }
public InputDeviceBT3DofPartStatus(InputDeviceBT3DofPart inputDeviceBT3DofPart) : base(inputDeviceBT3DofPart) { this.inputDeviceBT3DofPart = inputDeviceBT3DofPart; }