diff options
Diffstat (limited to 'Ryujinx/Ui/GLRenderer.cs')
-rw-r--r-- | Ryujinx/Ui/GLRenderer.cs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Ryujinx/Ui/GLRenderer.cs b/Ryujinx/Ui/GLRenderer.cs index 6651358d..17b592a7 100644 --- a/Ryujinx/Ui/GLRenderer.cs +++ b/Ryujinx/Ui/GLRenderer.cs @@ -449,17 +449,6 @@ namespace Ryujinx.Ui { _device.Hid.Keyboard.Update(hidKeyboard.Value); } - - // Toggle vsync - HotkeyButtons currentHotkeyButtons = keyboardController.GetHotkeyButtons(); - - if (currentHotkeyButtons.HasFlag(HotkeyButtons.ToggleVSync) && - !_prevHotkeyButtons.HasFlag(HotkeyButtons.ToggleVSync)) - { - _device.EnableDeviceVsync = !_device.EnableDeviceVsync; - } - - _prevHotkeyButtons = currentHotkeyButtons; } } else if (inputConfig is Common.Configuration.Hid.ControllerConfig controllerConfig) @@ -498,6 +487,17 @@ namespace Ryujinx.Ui _device.Hid.Npads.SetGamepadsInput(gamepadInputs.ToArray()); + // Hotkeys + HotkeyButtons currentHotkeyButtons = KeyboardController.GetHotkeyButtons(OpenTK.Input.Keyboard.GetState()); + + if (currentHotkeyButtons.HasFlag(HotkeyButtons.ToggleVSync) && + !_prevHotkeyButtons.HasFlag(HotkeyButtons.ToggleVSync)) + { + _device.EnableDeviceVsync = !_device.EnableDeviceVsync; + } + + _prevHotkeyButtons = currentHotkeyButtons; + //Touchscreen bool hasTouch = false; |