Exemple #1
0
        internal static void Down(InputDevice device, UIElement element = null)
        {
            switch (device)
            {
            case InputDevice.Keyboard:
                KeyboardHelper.Down(element);
                break;

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

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