mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 05:15:30 +00:00
Problem with mouse wheel not getting updated.
This commit is contained in:
parent
f769caa4f1
commit
35f154cb72
|
@ -90,8 +90,10 @@ namespace OpenTK.Platform.X11
|
|||
m[OpenTK.Input.MouseButton.Left] = (state & (int)X11.MouseMask.Button1Mask) != 0;
|
||||
m[OpenTK.Input.MouseButton.Middle] = (state & (int)X11.MouseMask.Button2Mask) != 0;
|
||||
m[OpenTK.Input.MouseButton.Right] = (state & (int)X11.MouseMask.Button3Mask) != 0;
|
||||
m.Wheel += (state & (int)X11.MouseMask.Button4Mask);
|
||||
m.Wheel -= (state & (int)X11.MouseMask.Button5Mask);
|
||||
if ((state & (int)X11.MouseMask.Button4Mask) != 0) m.Wheel++;
|
||||
if ((state & (int)X11.MouseMask.Button5Mask) != 0) m.Wheel--;
|
||||
//m.Wheel += (state & (int)X11.MouseMask.Button4Mask);
|
||||
//m.Wheel -= (state & (int)X11.MouseMask.Button5Mask);
|
||||
m.X = root_x;
|
||||
m.Y = root_y;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue