From bbbbc75e75c3aabdce406b14dbb07958f8e1f385 Mon Sep 17 00:00:00 2001 From: Malcolm Still Date: Fri, 6 Jan 2017 15:34:11 +0000 Subject: [PATCH] Relative pointer motion should use the relative (Delta) query functions. --- src/OpenTK/Platform/Linux/LinuxInput.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenTK/Platform/Linux/LinuxInput.cs b/src/OpenTK/Platform/Linux/LinuxInput.cs index efa45c7..894a258 100644 --- a/src/OpenTK/Platform/Linux/LinuxInput.cs +++ b/src/OpenTK/Platform/Linux/LinuxInput.cs @@ -512,7 +512,7 @@ namespace OpenTK.Platform.Linux 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) { mouse.State.SetIsConnected(true); -- 2.7.4