mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-16 17:27:25 +00:00
[X11] Fixed OnMouseMove being called without mouse movement
This commit is contained in:
parent
17aa8051f6
commit
786273dd19
|
@ -892,7 +892,7 @@ namespace OpenTK.Platform.X11
|
||||||
int x = e.MotionEvent.x;
|
int x = e.MotionEvent.x;
|
||||||
int y = e.MotionEvent.y;
|
int y = e.MotionEvent.y;
|
||||||
|
|
||||||
if (x != 0 || y != 0)
|
if (x != MouseState.X || y != MouseState.Y)
|
||||||
{
|
{
|
||||||
OnMouseMove(
|
OnMouseMove(
|
||||||
MathHelper.Clamp(x, 0, Width),
|
MathHelper.Clamp(x, 0, Width),
|
||||||
|
|
Loading…
Reference in a new issue