summaryrefslogtreecommitdiffhomepage
path: root/opentrack/keybinding-worker.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack/keybinding-worker.hpp')
-rw-r--r--opentrack/keybinding-worker.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/opentrack/keybinding-worker.hpp b/opentrack/keybinding-worker.hpp
index 8cf59d65..cb3e5f9f 100644
--- a/opentrack/keybinding-worker.hpp
+++ b/opentrack/keybinding-worker.hpp
@@ -32,9 +32,10 @@ struct Key {
bool shift;
bool ctrl;
bool alt;
+ bool held;
Timer timer;
public:
- Key() : keycode(0), shift(false), ctrl(false), alt(false)
+ Key() : keycode(0), shift(false), ctrl(false), alt(false), held(true)
{
}