summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/joypad_linux.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-02-17 13:40:15 +0100
committerGitHub <noreply@github.com>2021-02-17 13:40:15 +0100
commitab4f5c0668d2c90055f66f9fde98b4deecb19128 (patch)
treeba9044d6ec89164cc74116b578358798ec0ea50c /platform/linuxbsd/joypad_linux.h
parentfa24c99a5c0454586313958a04375ab63ac7d544 (diff)
parenta10c259c1d89fbce2d0e05ac60ac5c78d431c070 (diff)
downloadredot-engine-ab4f5c0668d2c90055f66f9fde98b4deecb19128.tar.gz
Merge pull request #46117 from akien-mga/dynamic-load-libudev
Dynamically load libudev.so.1 on Linux
Diffstat (limited to 'platform/linuxbsd/joypad_linux.h')
-rw-r--r--platform/linuxbsd/joypad_linux.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/linuxbsd/joypad_linux.h b/platform/linuxbsd/joypad_linux.h
index bf343b7ceb..2cca0700d6 100644
--- a/platform/linuxbsd/joypad_linux.h
+++ b/platform/linuxbsd/joypad_linux.h
@@ -70,10 +70,13 @@ private:
void reset();
};
- bool exit_udev;
+#ifdef UDEV_ENABLED
+ bool use_udev = false;
+#endif
+ bool exit_monitor = false;
Mutex joy_mutex;
Thread joy_thread;
- Input *input;
+ Input *input = nullptr;
Joypad joypads[JOYPADS_MAX];
Vector<String> attached_devices;