Uses hasflag instead of bitwise comparison
This commit is contained in:
parent
3334fb65c1
commit
b3c533429b
1 changed files with 2 additions and 2 deletions
|
@ -243,8 +243,8 @@ namespace Ryujinx
|
|||
controller.SendInput(currentButton, leftJoystick, rightJoystick);
|
||||
|
||||
// Toggle vsync
|
||||
if ((currentHotkeyButtons & HidHotkeyButtons.ToggleVSync) != 0 &&
|
||||
(_prevHotkeyButtons & HidHotkeyButtons.ToggleVSync) == 0)
|
||||
if (currentHotkeyButtons.HasFlag(HidHotkeyButtons.ToggleVSync) &&
|
||||
!_prevHotkeyButtons.HasFlag(HidHotkeyButtons.ToggleVSync))
|
||||
{
|
||||
_device.EnableDeviceVsync = !_device.EnableDeviceVsync;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue