summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/shortcuts.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-16 18:30:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-16 18:30:59 +0200
commitbb710c8d207337d4d0cc2a6657e954bbc2823e7f (patch)
tree928195af1d8849d96121fde4ae8ea40981109a0e /facetracknoir/shortcuts.h
parent8e988b5a8509cf811ababd8e49ce85aa4afe4da0 (diff)
initial implementation
To-be-reviewed-by: mm0zct
Diffstat (limited to 'facetracknoir/shortcuts.h')
-rw-r--r--facetracknoir/shortcuts.h7
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() {