support binding the non-US backslash key (#2271)

This is the key between Left Shift and Y on an ISO keyboard.
This commit is contained in:
Fabian Greffrath 2025-05-25 10:48:30 +02:00 committed by GitHub
parent 8553faabd8
commit d8077adb64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -89,6 +89,7 @@ enum
KEYP_MINUS,
KEYP_MULTIPLY,
KEYP_PERIOD,
KEYP_BACKSLASH,
KEYP_EQUALS = KEY_EQUALS,
KEYP_ENTER = KEY_ENTER,
};
@ -115,7 +116,7 @@ enum
KEYP_MULTIPLY, KEYP_MINUS, KEYP_PLUS, KEYP_ENTER, KEYP_1, \
KEYP_2, KEYP_3, KEYP_4, KEYP_5, KEYP_6, /* 90-99 */ \
KEYP_7, KEYP_8, KEYP_9, KEYP_0, KEYP_PERIOD, \
0, 0, 0, KEYP_EQUALS, /* 100-103 */ \
KEYP_BACKSLASH, 0, 0, KEYP_EQUALS, /* 100-103 */ \
}
// Default names for keys, to use in English or as fallback.

View File

@ -295,6 +295,7 @@ static const struct
{KEYP_MINUS, "num-" },
{KEYP_MULTIPLY, "num*" },
{KEYP_PERIOD, "num." },
{KEYP_BACKSLASH, "num\\" },
};
#define JOYB_LEN 16