diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-25 02:50:52 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-25 02:51:44 +0200 |
commit | 95114eccc774bbb0fbeade8904aafa4f9b6d143d (patch) | |
tree | e80f681b8374a91579ebd0fbfff9ecd48402e136 /opentrack/shortcuts.h | |
parent | 7d0c58540103e9182ba584b440b91068df03a49c (diff) |
initial impl of arbitrary keybindings
Issue: #118
Linux and OSX likely broken for now.
Diffstat (limited to 'opentrack/shortcuts.h')
-rw-r--r-- | opentrack/shortcuts.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/opentrack/shortcuts.h b/opentrack/shortcuts.h index 520042f0..6a9a6f77 100644 --- a/opentrack/shortcuts.h +++ b/opentrack/shortcuts.h @@ -27,14 +27,10 @@ using namespace options; extern QList<QString> global_key_sequences; struct key_opts { - value<int> key_index; - value<bool> ctrl, alt, shift; + value<int> keycode; key_opts(pbundle b, const QString& name) : - key_index(b, QString("key-index-%1").arg(name), 0), - ctrl(b, QString("key-ctrl-%1").arg(name), 0), - alt(b, QString("key-alt-%1").arg(name), 0), - shift(b, QString("key-shift-%1").arg(name), 0) + keycode(b, QString("keycode-%1").arg(name), 0) {} }; |