summaryrefslogtreecommitdiffhomepage
path: root/opentrack/keybinding-worker.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-12-06 05:15:07 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-12-06 05:15:07 +0100
commit1aa7bceaed59770adeb389d6c4c8f5561d0e7402 (patch)
treed4c056105771ca8959e843b74a8d80ab9457d6c2 /opentrack/keybinding-worker.hpp
parent4e74d6edef94e4f2f7caae76088f91e9ee993fba (diff)
api/keys: use a fake window for DirectInput handle
Diffstat (limited to 'opentrack/keybinding-worker.hpp')
-rw-r--r--opentrack/keybinding-worker.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/opentrack/keybinding-worker.hpp b/opentrack/keybinding-worker.hpp
index c8d8e009..fa50a974 100644
--- a/opentrack/keybinding-worker.hpp
+++ b/opentrack/keybinding-worker.hpp
@@ -19,6 +19,7 @@
#include <QThread>
#include <QMutex>
#include <QWidget>
+#include <QMainWindow>
#include <functional>
#include <vector>
@@ -45,11 +46,12 @@ struct OPENTRACK_EXPORT KeybindingWorker : private QThread
private:
LPDIRECTINPUT8 din;
LPDIRECTINPUTDEVICE8 dinkeyboard;
- win32_joy_ctx& joy_ctx;
+ win32_joy_ctx joy_ctx;
volatile bool should_quit;
using fun = std::function<void(const Key&)>;
std::vector<std::unique_ptr<fun>> receivers;
QMutex mtx;
+ QMainWindow fake_main_window;
void run() override;
KeybindingWorker();