File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ struct keycode_t {
51
51
52
52
constexpr auto UNKNOWN = 0 ;
53
53
54
- static constexpr std::array<keycode_t , 0xDF > init_keycodes () {
55
- std::array<keycode_t , 0xDF > keycodes {};
54
+ static constexpr std::array<keycode_t , 0xE3 > init_keycodes () {
55
+ std::array<keycode_t , 0xE3 > keycodes {};
56
56
57
57
#define __CONVERT (wincode, linuxcode, scancode ) \
58
58
static_assert (wincode < keycodes.size (), " Keycode doesn't fit into keycode array" ); \
@@ -182,6 +182,7 @@ static constexpr std::array<keycode_t, 0xDF> init_keycodes() {
182
182
__CONVERT (0xDC /* VKEY_OEM_5 */ , KEY_BACKSLASH, 0x70031 );
183
183
__CONVERT (0xDD /* VKEY_OEM_6 */ , KEY_RIGHTBRACE, 0x70030 );
184
184
__CONVERT (0xDE /* VKEY_OEM_7 */ , KEY_APOSTROPHE, 0x70034 );
185
+ __CONVERT (0xE2 /* VKEY_NON_US_BACKSLASH */ , KEY_102ND, 0x70064 );
185
186
#undef __CONVERT
186
187
187
188
return keycodes;
You can’t perform that action at this time.
0 commit comments