[Platform] More selective mouse events

We should not raise mouse events when the cursor state hasn’t changed.
This commit is contained in:
thefiddler 2014-05-06 09:01:23 +02:00
parent 3408523e27
commit 637a8bee66

View file

@ -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;