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

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