diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/linux/src/java/net/java/games/input/LinuxEnvironmentPlugin.java | 2 | ||||
-rw-r--r-- | plugins/linux/src/native/JoystickDevice.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/linux/src/java/net/java/games/input/LinuxEnvironmentPlugin.java b/plugins/linux/src/java/net/java/games/input/LinuxEnvironmentPlugin.java index 4dcb27f..8883691 100644 --- a/plugins/linux/src/java/net/java/games/input/LinuxEnvironmentPlugin.java +++ b/plugins/linux/src/java/net/java/games/input/LinuxEnvironmentPlugin.java @@ -45,6 +45,8 @@ public class LinuxEnvironmentPlugin extends ControllerEnvironment implements Plu } else { controllers = new Controller[0]; } + + System.out.println("Linux plugin claims to have found " + controllers.length + " controllers"); } /** Returns a list of all controllers available to this environment, diff --git a/plugins/linux/src/native/JoystickDevice.cpp b/plugins/linux/src/native/JoystickDevice.cpp index 59d69eb..20be098 100644 --- a/plugins/linux/src/native/JoystickDevice.cpp +++ b/plugins/linux/src/native/JoystickDevice.cpp @@ -42,7 +42,7 @@ JoystickDevice::JoystickDevice(char *deviceFileName) { int i; LOG_TRACE("Trying to open %s\n", deviceFileName); - fd = open(deviceFileName, O_RDWR | O_NONBLOCK); + fd = open(deviceFileName, O_RDONLY | O_NONBLOCK); /*if(fd<0) { char errorMessage[512]; sprintf(errorMessage, "Error opening device %s\n", deviceFileName); |