diff options
| author | Rémi Verschelde | 2016-07-03 23:19:22 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2016-07-07 23:15:03 +0200 |
| commit | b6ac91c0e6416eda0dec226c5dbe5716f293e4f6 (patch) | |
| tree | 885a240c6cc6dfbe7a4daf0a0b002e5ea06ffbb0 /platform/x11/joystick_linux.cpp | |
| parent | 1b9433594ecc6c935c81e9030a6b52c7b56cb3a4 (diff) | |
| download | godot-b6ac91c0e6416eda0dec226c5dbe5716f293e4f6.tar.gz godot-b6ac91c0e6416eda0dec226c5dbe5716f293e4f6.tar.zst godot-b6ac91c0e6416eda0dec226c5dbe5716f293e4f6.zip | |
Diffstat (limited to 'platform/x11/joystick_linux.cpp')
| -rw-r--r-- | platform/x11/joystick_linux.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/x11/joystick_linux.cpp b/platform/x11/joystick_linux.cpp index 82f79c264..4a6a4f3a5 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 |
