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

            dataGetOneList.Add(inputDataGetKey = new InputDataGetHandKey(this));
        }
Esempio n. 4
0
 public InputDeviceHandPartStatus(InputDeviceHandPart _inputDeviceHandPart) : base(_inputDeviceHandPart)
 {
     inputDeviceHandPart = _inputDeviceHandPart;
 }
Esempio 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));
 }
Esempio n. 6
0
 public InputDataHand(InputDeviceHandPart inputDeviceHandPart) : base(inputDeviceHandPart)
 {
     this.inputDeviceHandPart = inputDeviceHandPart;
 }