mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 14:05:30 +00:00
Final fix for mousewheel support on x64.
This commit is contained in:
parent
0f1df127d5
commit
0769c375db
|
@ -88,7 +88,9 @@ namespace OpenTK.Platform.Windows
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case WindowMessage.MOUSEWHEEL:
|
case WindowMessage.MOUSEWHEEL:
|
||||||
mouse.Wheel += (int)(wparam.ToUInt32() >> 16) / 120;
|
// This is due to inconsistent behavior of the WParam value on 64bit arch, whese
|
||||||
|
// wparam = 0xffffffffff880000 or wparam = 0x00000000ff100000
|
||||||
|
mouse.Wheel += (int)((long)msg.WParam << 32 >> 48) / 120;
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case WindowMessage.LBUTTONDOWN:
|
case WindowMessage.LBUTTONDOWN:
|
||||||
|
|
Loading…
Reference in a new issue