mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-26 10:11:00 +00:00
Fix overflow exception on right shift key press/release when running on x64 mode.
This commit is contained in:
parent
cb0848f154
commit
98aec7ce1c
|
@ -144,7 +144,7 @@ namespace OpenTK.Platform.Windows
|
||||||
// TODO: Not 100% reliable, when both keys are pressed at once.
|
// TODO: Not 100% reliable, when both keys are pressed at once.
|
||||||
if (ShiftRightScanCode != 0)
|
if (ShiftRightScanCode != 0)
|
||||||
{
|
{
|
||||||
if ((((int)msg.LParam >> 16) & 0xFF) == ShiftRightScanCode)
|
if (((msg.LParam.ToInt32() >> 16) & 0xFF) == ShiftRightScanCode)
|
||||||
keyboard[Input.Key.ShiftRight] = pressed;
|
keyboard[Input.Key.ShiftRight] = pressed;
|
||||||
else
|
else
|
||||||
keyboard[Input.Key.ShiftLeft] = pressed;
|
keyboard[Input.Key.ShiftLeft] = pressed;
|
||||||
|
|
Loading…
Reference in a new issue