mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 21:21:02 +00:00
[Platform] More selective mouse events
We should not raise mouse events when the cursor state hasn’t changed.
This commit is contained in:
parent
3408523e27
commit
637a8bee66
|
@ -260,6 +260,7 @@ namespace OpenTK.Platform
|
|||
if (e.XDelta == 0 && e.YDelta == 0)
|
||||
{
|
||||
Debug.WriteLine("OnMouseMove called without moving the mouse");
|
||||
return;
|
||||
}
|
||||
|
||||
PreviousMouseState = MouseState;
|
||||
|
@ -277,6 +278,7 @@ namespace OpenTK.Platform
|
|||
if (dx == 0 && dy == 0)
|
||||
{
|
||||
Debug.WriteLine("OnMouseWheel called without moving the mouse wheel.");
|
||||
return;
|
||||
}
|
||||
|
||||
PreviousMouseState = MouseState;
|
||||
|
|
Loading…
Reference in a new issue