From b350ece864633013d7b59197945f304c20fa5c42 Mon Sep 17 00:00:00 2001 From: hondres Date: Sun, 14 Feb 2016 15:13:11 +0100 Subject: x11: make dependancy on libudev optional --- platform/x11/joystick_linux.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'platform/x11/joystick_linux.h') 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 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); -- cgit v1.2.3