Relative pointer motion should use the relative (Delta) query functions.

This commit is contained in:
Malcolm Still 2017-01-06 15:34:11 +00:00
parent 9494457c26
commit bbbbc75e75

View file

@ -512,7 +512,7 @@ namespace OpenTK.Platform.Linux
void HandlePointerMotion(MouseDevice mouse, PointerEvent e) void HandlePointerMotion(MouseDevice mouse, PointerEvent e)
{ {
Vector2 delta = new Vector2((float)e.X, (float)e.Y); Vector2 delta = new Vector2((float)e.DeltaX, (float)e.DeltaY);
if (mouse != null) if (mouse != null)
{ {
mouse.State.SetIsConnected(true); mouse.State.SetIsConnected(true);