diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-11 13:44:45 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-11 13:44:45 +0100 |
commit | 17849b12f232c89bdae16f7e179d3a92a32280ad (patch) | |
tree | 5da1a08fd694971afe7a707069a38d1a1be2f92d /opentrack/keybinding-worker.hpp | |
parent | c4c3e746f030e6c5e5a1f8b88762fae95d1b9225 (diff) |
shortcuts: map joystick buttons on depress only
Some buttons like the X65 mode switch are held all the time. Prevent
them from hogging all the keybindings.
Issue: #118
Diffstat (limited to 'opentrack/keybinding-worker.hpp')
-rw-r--r-- | opentrack/keybinding-worker.hpp | 3 |
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) { } |