summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2020-01-27 16:13:58 +0100
committerStanislaw Halik <sthalik@misaki.pl>2020-01-27 16:13:58 +0100
commit3dadc95e5b7b9ab0f50e4c977f63167cf30da852 (patch)
treeaaa9eed9fc0924109eba54e0beb828433771f6fc
parentf4f8eda8db8d1185df94c209873473663e59a33c (diff)
dinput: support win32 F13 -> F24
Fixes #1012
-rw-r--r--logic/win32-shortcuts.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/logic/win32-shortcuts.cpp b/logic/win32-shortcuts.cpp
index c2920071..086c8d92 100644
--- a/logic/win32-shortcuts.cpp
+++ b/logic/win32-shortcuts.cpp
@@ -74,7 +74,21 @@ static const win_key windows_key_sequences[] {
{ DIK_F9, Qt::Key_F9 },
{ DIK_F10, Qt::Key_F10 },
{ DIK_F11, Qt::Key_F11 },
- { DIK_F12, Qt::Key_F12 },
+ { DIK_F13, Qt::Key_F12 },
+ { DIK_F14, Qt::Key_F12 },
+ { DIK_F15, Qt::Key_F12 },
+ { 0x67, Qt::Key_F12 },
+ { 0x68, Qt::Key_F13 },
+ { 0x69, Qt::Key_F14 },
+ { 0x6a, Qt::Key_F15 },
+ { 0x6b, Qt::Key_F16 },
+ { 0x6c, Qt::Key_F17 },
+ { 0x6d, Qt::Key_F18 },
+ { 0x6e, Qt::Key_F19 },
+ { 0x70, Qt::Key_F20 },
+ { 0x71, Qt::Key_F21 },
+ { 0x72, Qt::Key_F23 },
+ { 0x73, Qt::Key_F24 },
{ DIK_0, Qt::Key_0 },
{ DIK_1, Qt::Key_1 },
{ DIK_2, Qt::Key_2 },