From 7c1b15bfb00b36e80284701b1ede992b7eb82ef4 Mon Sep 17 00:00:00 2001 From: Xerxes Rånby Date: Tue, 15 Jan 2013 15:56:31 +0100 Subject: LinuxMouseTracker: Fix inverted Y-axis & missing button release. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Xerxes Rånby --- src/newt/classes/jogamp/newt/driver/linux/LinuxMouseTracker.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/newt/classes') diff --git a/src/newt/classes/jogamp/newt/driver/linux/LinuxMouseTracker.java b/src/newt/classes/jogamp/newt/driver/linux/LinuxMouseTracker.java index 885649d17..b8a326a6c 100644 --- a/src/newt/classes/jogamp/newt/driver/linux/LinuxMouseTracker.java +++ b/src/newt/classes/jogamp/newt/driver/linux/LinuxMouseTracker.java @@ -152,7 +152,7 @@ public class LinuxMouseTracker implements WindowListener { yd=b[2]; x+=xd; - y+=yd; + y-=yd; if(x<0) { x=0; @@ -161,6 +161,7 @@ public class LinuxMouseTracker implements WindowListener { y=0; } + buttonDown = 0; if(lb) { buttonDown = MouseEvent.BUTTON1; } -- cgit v1.2.3