summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-01-16 15:28:30 +0100
committerSven Gothel <[email protected]>2013-01-16 15:28:30 +0100
commitc43fab14af90e824b435b7d9fc214d897e7554de (patch)
tree86b81bd3f7ba1a17e20ecd4f8ef9183064f18408 /src
parent5060b728b26a89a14367f8fca9f4eb7968f719ca (diff)
parent7c1b15bfb00b36e80284701b1ede992b7eb82ef4 (diff)
Merge remote-tracking branch 'xranby/NEWT-input'
Diffstat (limited to 'src')
-rw-r--r--src/newt/classes/jogamp/newt/driver/linux/LinuxMouseTracker.java3
1 files changed, 2 insertions, 1 deletions
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;
}