summaryrefslogtreecommitdiff
path: root/platform/x11/joystick_linux.h
diff options
context:
space:
mode:
authorpunto- <ariel@godotengine.org>2016-02-14 14:18:51 -0300
committerpunto- <ariel@godotengine.org>2016-02-14 14:18:51 -0300
commit1448593b77f629f44b9d48e064d9c8aebecf85fc (patch)
tree44857dcd9d2218b2ffd7c468cd4f03e1ca016026 /platform/x11/joystick_linux.h
parent3946354700f41711aea5d33f4d496ab296b2cc06 (diff)
parentb350ece864633013d7b59197945f304c20fa5c42 (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.h4
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);