Esempio n. 1
0
        internal static void Right(InputDevice device, UIElement element = null)
        {
            switch (device)
            {
            case InputDevice.Keyboard:
                KeyboardHelper.Right(element);
                break;

            case InputDevice.Gamepad:
                KeyboardHelper.GamepadDpadRight(element);
                break;

            default:
                throw new Exception("Invalid input device.");
            }
        }