1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Merge pull request #102448 from adamscott/a-miserable-little-pile-of-secrets

Add `XK_KP_{Decimal,Enter}` to `KeyMappingX11::is_sym_numpad()`
This commit is contained in:
Thaddeus Crews
2025-02-05 10:27:30 -06:00
2 changed files with 8 additions and 4 deletions

View File

@@ -371,11 +371,13 @@ void KeyMappingXKB::initialize() {
bool KeyMappingXKB::is_sym_numpad(xkb_keysym_t p_keysym) {
switch (p_keysym) {
case XKB_KEY_KP_Equal:
case XKB_KEY_KP_Add:
case XKB_KEY_KP_Subtract:
case XKB_KEY_KP_Multiply:
case XKB_KEY_KP_Divide:
case XKB_KEY_KP_Subtract:
case XKB_KEY_KP_Separator:
case XKB_KEY_KP_Add:
case XKB_KEY_KP_Decimal:
case XKB_KEY_KP_0:
case XKB_KEY_KP_1:
case XKB_KEY_KP_2:

View File

@@ -1131,11 +1131,13 @@ void KeyMappingX11::initialize() {
bool KeyMappingX11::is_sym_numpad(KeySym p_keysym) {
switch (p_keysym) {
case XK_KP_Equal:
case XK_KP_Add:
case XK_KP_Subtract:
case XK_KP_Multiply:
case XK_KP_Divide:
case XK_KP_Subtract:
case XK_KP_Separator:
case XK_KP_Add:
case XK_KP_Decimal:
case XK_KP_0:
case XK_KP_1:
case XK_KP_2: