summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-08 15:59:48 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-08 19:19:06 +0100
commit6f878a4c46a4947bb34cbdb566a9d07b676ecc48 (patch)
tree935351e9b060599e514beeabf6fbef8197ee102d
parent5ac9e29051030ca2403a86bd0c5f90aa3ce78d40 (diff)
dinput: try to fix F13-F23 keys
Issue: #1269
-rw-r--r--logic/win32-shortcuts.cpp29
1 files changed, 3 insertions, 26 deletions
diff --git a/logic/win32-shortcuts.cpp b/logic/win32-shortcuts.cpp
index 086c8d92..cb4f99b3 100644
--- a/logic/win32-shortcuts.cpp
+++ b/logic/win32-shortcuts.cpp
@@ -41,6 +41,9 @@ static const win_key windows_key_sequences[] {
{ DIK_F10, Qt::Key_F10 },
{ DIK_F11, Qt::Key_F11 },
{ DIK_F12, Qt::Key_F12 },
+ { DIK_F13, Qt::Key_F13 },
+ { DIK_F14, Qt::Key_F14 },
+ { DIK_F15, Qt::Key_F15 },
{ DIK_LEFT, Qt::Key_Left },
{ DIK_RIGHT, Qt::Key_Right },
{ DIK_UP, Qt::Key_Up },
@@ -63,32 +66,6 @@ static const win_key windows_key_sequences[] {
{ DIK_MINUS, Qt::Key_Minus },
{ DIK_EQUALS, Qt::Key_Equal },
{ DIK_PERIOD, Qt::Key_Period },
- { DIK_F1, Qt::Key_F1 },
- { DIK_F2, Qt::Key_F2 },
- { DIK_F3, Qt::Key_F3 },
- { DIK_F4, Qt::Key_F4 },
- { DIK_F5, Qt::Key_F5 },
- { DIK_F6, Qt::Key_F6 },
- { DIK_F7, Qt::Key_F7 },
- { DIK_F8, Qt::Key_F8 },
- { DIK_F9, Qt::Key_F9 },
- { DIK_F10, Qt::Key_F10 },
- { DIK_F11, Qt::Key_F11 },
- { 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 },