summaryrefslogtreecommitdiffhomepage
path: root/opentrack-dinput/keybinding-worker.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-12 17:06:14 +0200
committerStanislaw Halik <sthalik@CROOKED-SCHEMER>2016-08-12 17:11:40 +0200
commit33c1683b37265001eb91024290f7137c5b3c5411 (patch)
treef1a620e9fdba06590d9db14ae8c352a3ad2ddc47 /opentrack-dinput/keybinding-worker.hpp
parentedbd6759b563026435476ade5dc1e92cfa187263 (diff)
dinput: hold dinput reference through entire lifetime
Diffstat (limited to 'opentrack-dinput/keybinding-worker.hpp')
-rw-r--r--opentrack-dinput/keybinding-worker.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/opentrack-dinput/keybinding-worker.hpp b/opentrack-dinput/keybinding-worker.hpp
index c0d61c2f..623875ac 100644
--- a/opentrack-dinput/keybinding-worker.hpp
+++ b/opentrack-dinput/keybinding-worker.hpp
@@ -17,6 +17,7 @@
#include <QMutex>
#include <QWidget>
#include <QMainWindow>
+#include <QDebug>
#include <functional>
#include <vector>
@@ -46,9 +47,11 @@ private:
std::vector<std::unique_ptr<fun>> receivers;
QMutex mtx;
QMainWindow fake_main_window;
+ dinput_handle::di_t din;
volatile bool should_quit;
void run() override;
+ void init();
KeybindingWorker();
static KeybindingWorker& make();