Browse Source

Hotkeys: Support binding to keypad numbers (0-9)

This patch adds support to bind actions in settings to keypad numbers
(0-9).
pull/6711/head
tetektoza 2 years ago committed by Anders Jenbo
parent
commit
fbc542433f
  1. 5
      Source/options.cpp

5
Source/options.cpp

@ -1304,6 +1304,11 @@ KeymapperOptions::KeymapperOptions()
keyIDToKeyName.emplace(SDLK_F1 + i, StrCat("F", i + 1));
}
keyIDToKeyName.emplace(SDLK_KP_0, "KEYPADNUM 0");
for (int i = 0; i < 9; i++) {
keyIDToKeyName.emplace(SDLK_KP_1 + i, StrCat("KEYPADNUM ", i + 1));
}
keyIDToKeyName.emplace(SDLK_LALT, "LALT");
keyIDToKeyName.emplace(SDLK_RALT, "RALT");
keyIDToKeyName.emplace(SDLK_SPACE, "SPACE");

Loading…
Cancel
Save