diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-22 18:01:06 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-22 18:01:06 +0100 |
commit | 5d4a9c78fbbbd59d366e91bfe4c4263d12833abe (patch) | |
tree | 1e60751f78de22affeda114e16c79f333dc05fb1 /opentrack/keybinding-worker.hpp | |
parent | 0c3a306b8588ae1cbe190ee18db2336bcd0eb527 (diff) |
api/joy: guard _WIN32 properly
Diffstat (limited to 'opentrack/keybinding-worker.hpp')
-rw-r--r-- | opentrack/keybinding-worker.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/opentrack/keybinding-worker.hpp b/opentrack/keybinding-worker.hpp index c4a39ec6..83ffadf1 100644 --- a/opentrack/keybinding-worker.hpp +++ b/opentrack/keybinding-worker.hpp @@ -59,19 +59,18 @@ struct Key { int foo; }; struct OPENTRACK_EXPORT KeybindingWorker : private QThread { private: +#ifdef _WIN32 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; QMutex mtx; - + void run() override; KeybindingWorker(); - + KeybindingWorker(const KeybindingWorker&) = delete; KeybindingWorker& operator=(KeybindingWorker&) = delete; static KeybindingWorker& make(); @@ -100,4 +99,7 @@ public: { return Token(receiver); } +#else + void run() override {} +#endif }; |