diff options
author | punto- <ariel@godotengine.org> | 2016-02-14 14:18:51 -0300 |
---|---|---|
committer | punto- <ariel@godotengine.org> | 2016-02-14 14:18:51 -0300 |
commit | 1448593b77f629f44b9d48e064d9c8aebecf85fc (patch) | |
tree | 44857dcd9d2218b2ffd7c468cd4f03e1ca016026 /platform/x11/joystick_linux.h | |
parent | 3946354700f41711aea5d33f4d496ab296b2cc06 (diff) | |
parent | b350ece864633013d7b59197945f304c20fa5c42 (diff) |
Merge pull request #3708 from Hinsbart/optional_udev
x11: make dependancy on libudev optional
Diffstat (limited to 'platform/x11/joystick_linux.h')
-rw-r--r-- | platform/x11/joystick_linux.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/x11/joystick_linux.h b/platform/x11/joystick_linux.h index 7f96e3451f..e433f5e8e3 100644 --- a/platform/x11/joystick_linux.h +++ b/platform/x11/joystick_linux.h @@ -73,6 +73,7 @@ private: Thread *joy_thread; InputDefault *input; Joystick joysticks[JOYSTICKS_MAX]; + Vector<String> attached_devices; static void joy_thread_func(void *p_user); @@ -81,8 +82,11 @@ private: void setup_joystick_properties(int p_id); void close_joystick(int p_id = -1); +#ifdef UDEV_ENABLED void enumerate_joysticks(struct udev *_udev); void monitor_joysticks(struct udev *_udev); +#endif + void monitor_joysticks(); void run_joystick_thread(); void open_joystick(const char* path); |