summaryrefslogtreecommitdiff
path: root/platform/x11/joystick_linux.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-07-07 23:27:42 +0200
committerGitHub <noreply@github.com>2016-07-07 23:27:42 +0200
commitf1e1910ae435c255745773bf37a60d798f9412fb (patch)
tree7e028a2da14765378e5eee7f71b434bde5038705 /platform/x11/joystick_linux.cpp
parent1b9433594ecc6c935c81e9030a6b52c7b56cb3a4 (diff)
parent454b210242ec15a9928324757f27989216bc5a59 (diff)
Merge pull request #5538 from akien-mga/pr-unused-var
Removed unused variables + dead code
Diffstat (limited to 'platform/x11/joystick_linux.cpp')
-rw-r--r--platform/x11/joystick_linux.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/x11/joystick_linux.cpp b/platform/x11/joystick_linux.cpp
index 82f79c2640..4a6a4f3a52 100644
--- a/platform/x11/joystick_linux.cpp
+++ b/platform/x11/joystick_linux.cpp
@@ -45,7 +45,9 @@
#define test_bit(nr, addr) (((1UL << ((nr) % LONG_BITS)) & ((addr)[(nr) / LONG_BITS])) != 0)
#define NBITS(x) ((((x)-1)/LONG_BITS)+1)
+#ifdef UDEV_ENABLED
static const char* ignore_str = "/dev/input/js";
+#endif
joystick_linux::Joystick::Joystick() {
fd = -1;
@@ -198,7 +200,6 @@ void joystick_linux::monitor_joysticks(udev *p_udev) {
}
usleep(50000);
}
- //printf("exit udev\n");
udev_monitor_unref(mon);
}
#endif