public InputDevicePartDispatchEventHand(InputDeviceHandPart inputDeviceHandPart) : base(inputDeviceHandPart) { this.inputDeviceHandPart = inputDeviceHandPart; eventList.Add(inputDeviceHandPartCatchEvent = new InputDeviceHandPartCatchEvent(this)); //eventList.Add(inputDeviceHandPartLeftRightEvent = new InputDeviceHandPartLeftRightEvent(this)); //eventList.Add(inputDeviceHandPartTurnLeftRightEvent = new InputDeviceHandPartTurnLeftRightEvent(this)); }
void CatchEvent(InputDeviceHandPart inputDeviceHandPart, HandEventType eventType) { if (eventType == HandEventType.CatchDown && inputDeviceHandPart == inputDataGetHand.inputDeviceHandPart) { inputDataGetHand.inputDevicePartBase.inputDataBase.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.DOWN); } else if (eventType == HandEventType.CatchUp && inputDeviceHandPart == inputDataGetHand.inputDeviceHandPart) { inputDataGetHand.inputDevicePartBase.inputDataBase.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.UP); } }
public InputDataGetHand(InputDeviceHandPart _inputDeviceHandPart) : base(_inputDeviceHandPart) { inputDeviceHandPart = _inputDeviceHandPart; dataGetOneList.Add(inputDataGetKey = new InputDataGetHandKey(this)); }
public InputDeviceHandPartStatus(InputDeviceHandPart _inputDeviceHandPart) : base(_inputDeviceHandPart) { inputDeviceHandPart = _inputDeviceHandPart; }
public static void OnHandCatchDrag(GameObject obj, InputDeviceHandPart inputDeviceHandPart, SCPointEventData sCPointEventData = null) { ExecuteEvents.Execute <IHandCatchDragHandler>(obj, null, (x, y) => x.OnHandCatchDrag(inputDeviceHandPart, sCPointEventData)); }
public InputDataHand(InputDeviceHandPart inputDeviceHandPart) : base(inputDeviceHandPart) { this.inputDeviceHandPart = inputDeviceHandPart; }