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/global-shortcuts.h | |
parent | 7d0c58540103e9182ba584b440b91068df03a49c (diff) |
initial impl of arbitrary keybindings
Issue: #118
Linux and OSX likely broken for now.
Diffstat (limited to 'opentrack/global-shortcuts.h')
-rw-r--r-- | opentrack/global-shortcuts.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/opentrack/global-shortcuts.h b/opentrack/global-shortcuts.h new file mode 100644 index 00000000..2b25321b --- /dev/null +++ b/opentrack/global-shortcuts.h @@ -0,0 +1,14 @@ +#pragma once + +struct win_key; + +extern QList<win_key> windows_key_mods; +extern QList<win_key> windows_key_sequences; + +struct win_key +{ + win_key(int win, Qt::Key qt) : win(win), qt(qt) {} + int win; + Qt::Key qt; + static bool from_qt(QKeySequence qt_, int& dik, Qt::KeyboardModifiers &mods); +}; |