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 /gui/keyboard.h | |
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 'gui/keyboard.h')
-rw-r--r-- | gui/keyboard.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/keyboard.h b/gui/keyboard.h index aa4b4a24..b840bc78 100644 --- a/gui/keyboard.h +++ b/gui/keyboard.h @@ -22,7 +22,7 @@ public: { if(k.guid != "") { - joystick_button_pressed(k.guid, k.keycode); + joystick_button_pressed(k.guid, k.keycode, k.held); } else { @@ -54,5 +54,5 @@ public: #endif signals: void key_pressed(QKeySequence k); - void joystick_button_pressed(QString guid, int idx); + void joystick_button_pressed(QString guid, int idx, bool held); }; |