mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 17:47:12 -04:00
Hopefully fix XButton presses.
This commit is contained in:
parent
8a140863fd
commit
48f8450256
@ -226,7 +226,7 @@ namespace OpenTK.Platform.Windows
|
||||
break;
|
||||
|
||||
case WindowMessage.XBUTTONDOWN:
|
||||
mouse[((wParam.ToInt32() & 0xFFFF0000) >> 16) != (int)MouseKeys.XButton1 ? MouseButton.Button1 : MouseButton.Button2] = true;
|
||||
mouse[(((ulong)wParam.ToInt64() >> 16) & 0xFFFF) != (int)MouseKeys.XButton1 ? MouseButton.Button1 : MouseButton.Button2] = true;
|
||||
break;
|
||||
|
||||
case WindowMessage.LBUTTONUP:
|
||||
@ -242,8 +242,7 @@ namespace OpenTK.Platform.Windows
|
||||
break;
|
||||
|
||||
case WindowMessage.XBUTTONUP:
|
||||
// TODO: Is this correct?
|
||||
mouse[((wParam.ToInt32() & 0xFFFF0000) >> 16) != (int)MouseKeys.XButton1 ? MouseButton.Button1 : MouseButton.Button2] = false;
|
||||
mouse[(((ulong)wParam.ToInt64() >> 16) & 0xFFFF) != (int)MouseKeys.XButton1 ? MouseButton.Button1 : MouseButton.Button2] = false;
|
||||
break;
|
||||
|
||||
// Keyboard events:
|
||||
|
Loading…
x
Reference in New Issue
Block a user