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));
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
        public InputDataGetHand(InputDeviceHandPart _inputDeviceHandPart) : base(_inputDeviceHandPart)
        {
            inputDeviceHandPart = _inputDeviceHandPart;

            dataGetOneList.Add(inputDataGetKey = new InputDataGetHandKey(this));
        }
Exemplo n.º 4
0
 public InputDeviceHandPartStatus(InputDeviceHandPart _inputDeviceHandPart) : base(_inputDeviceHandPart)
 {
     inputDeviceHandPart = _inputDeviceHandPart;
 }
Exemplo n.º 5
0
 public static void OnHandCatchDrag(GameObject obj, InputDeviceHandPart inputDeviceHandPart, SCPointEventData sCPointEventData = null)
 {
     ExecuteEvents.Execute <IHandCatchDragHandler>(obj, null, (x, y) => x.OnHandCatchDrag(inputDeviceHandPart, sCPointEventData));
 }
Exemplo n.º 6
0
 public InputDataHand(InputDeviceHandPart inputDeviceHandPart) : base(inputDeviceHandPart)
 {
     this.inputDeviceHandPart = inputDeviceHandPart;
 }