aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes/jogamp/newt/driver/linux/LinuxMouseTracker.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/classes/jogamp/newt/driver/linux/LinuxMouseTracker.java')
-rw-r--r--src/newt/classes/jogamp/newt/driver/linux/LinuxMouseTracker.java8
1 files changed, 7 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 53bb9c3a5..a92f6c363 100644
--- a/src/newt/classes/jogamp/newt/driver/linux/LinuxMouseTracker.java
+++ b/src/newt/classes/jogamp/newt/driver/linux/LinuxMouseTracker.java
@@ -56,7 +56,7 @@ public class LinuxMouseTracker implements WindowListener, MouseTracker {
static {
lmt = new LinuxMouseTracker();
- final Thread t = new InterruptSource.Thread(null, lmt.mouseDevicePoller, "NEWT-LinuxMouseTracker");
+ final Thread t = new InterruptSource.Thread(null, lmt.mouseDevicePoller, "NEWT-MouseTracker");
t.setDaemon(true);
t.start();
}
@@ -122,6 +122,9 @@ public class LinuxMouseTracker implements WindowListener, MouseTracker {
final byte[] b = new byte[3];
final File f = new File("/dev/input/mice");
f.setReadOnly();
+ if(Window.DEBUG_MOUSE_EVENT) {
+ System.out.println("LinuxMouseTracker: Started "+f);
+ }
InputStream fis;
try {
fis = new FileInputStream(f);
@@ -229,6 +232,9 @@ public class LinuxMouseTracker implements WindowListener, MouseTracker {
e.printStackTrace();
}
}
+ if(Window.DEBUG_MOUSE_EVENT) {
+ System.out.println("LinuxMouseTracker: Stopped "+f);
+ }
}
}
}