diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-16 18:30:59 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-16 18:30:59 +0200 |
commit | bb710c8d207337d4d0cc2a6657e954bbc2823e7f (patch) | |
tree | 928195af1d8849d96121fde4ae8ea40981109a0e /facetracknoir/shortcuts.h | |
parent | 8e988b5a8509cf811ababd8e49ce85aa4afe4da0 (diff) |
initial implementation
To-be-reviewed-by: mm0zct
Diffstat (limited to 'facetracknoir/shortcuts.h')
-rw-r--r-- | facetracknoir/shortcuts.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/facetracknoir/shortcuts.h b/facetracknoir/shortcuts.h index 05c36520..9fd83af3 100644 --- a/facetracknoir/shortcuts.h +++ b/facetracknoir/shortcuts.h @@ -64,17 +64,18 @@ private: LPDIRECTINPUT8 din; LPDIRECTINPUTDEVICE8 dinkeyboard; Key kCenter; + Key kToggle; FaceTrackNoIR& window; public: volatile bool should_quit; ~KeybindingWorkerImpl(); - KeybindingWorkerImpl(FaceTrackNoIR& w, Key keyCenter); + KeybindingWorkerImpl(FaceTrackNoIR& w, Key keyCenter, Key keyToggle); void run(); }; #else class KeybindingWorkerImpl { public: - KeybindingWorkerImpl(FaceTrackNoIR& w, Key keyCenter); + KeybindingWorkerImpl(FaceTrackNoIR& w, Key keyCenter, Key keyToggle); void run() {} }; #endif @@ -82,7 +83,7 @@ public: class KeybindingWorker : public QThread, public KeybindingWorkerImpl { Q_OBJECT public: - KeybindingWorker(FaceTrackNoIR& w, Key keyCenter) : KeybindingWorkerImpl(w, keyCenter) + KeybindingWorker(FaceTrackNoIR& w, Key keyCenter, Key keyToggle) : KeybindingWorkerImpl(w, keyCenter, keyToggle) { } void run() { |