public DirectionActionsPress(Hand hand, DirectionAction button, Direction direction, bool pressed)
 {
     this.hand      = hand;
     this.button    = button;
     this.direction = direction;
     this.pressed   = pressed;
 }
Exemplo n.º 2
0
        protected virtual Action NavigateDirection(Direction direction, DirectionAction button)
        {
            if (directionKeys.ContainsKey(direction))
            {
                var key      = directionKeys[direction];
                var keyPress = Key(key);
                keyPress.Press();
                return(() => keyPress.Release());
            }

            return(() => { });
        }