summaryrefslogtreecommitdiffhomepage
path: root/opentrack/keybinding-worker.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-22 17:46:46 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-22 17:46:46 +0100
commit0c3a306b8588ae1cbe190ee18db2336bcd0eb527 (patch)
tree95fb3d748d4e42130df561ddc512e72aa6e0c47e /opentrack/keybinding-worker.hpp
parentaac65283a2b254f0338a6ad1609e5d916ba9dcfc (diff)
api/shortcuts: hopefully guard joystick _WIN32
Diffstat (limited to 'opentrack/keybinding-worker.hpp')
-rw-r--r--opentrack/keybinding-worker.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/opentrack/keybinding-worker.hpp b/opentrack/keybinding-worker.hpp
index 8474ae1e..c4a39ec6 100644
--- a/opentrack/keybinding-worker.hpp
+++ b/opentrack/keybinding-worker.hpp
@@ -15,7 +15,9 @@
#endif
#include "opentrack-compat/timer.hpp"
-#include "opentrack/win32-joystick.hpp"
+#ifdef _WIN32
+# include "opentrack/win32-joystick.hpp"
+#endif
#include <QThread>
#include <QMutex>
#include <QWidget>
@@ -59,7 +61,9 @@ struct OPENTRACK_EXPORT KeybindingWorker : private QThread
private:
LPDIRECTINPUT8 din;
LPDIRECTINPUTDEVICE8 dinkeyboard;
+#ifdef _WIN32
win32_joy_ctx& joy_ctx;
+#endif
volatile bool should_quit;
using fun = std::function<void(Key&)>;
std::vector<fun> receivers;