Fix #12608: SDL keycode to vkey mapping

This commit is contained in:
Jonathan G Rennison 2024-05-06 16:50:49 +01:00 committed by rubidium42
parent 019f93a65f
commit 8710e9b8c8
2 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ struct SDLVkMapping {
const bool unprintable;
constexpr SDLVkMapping(SDL_Keycode vk_first, SDL_Keycode vk_last, uint8_t map_first, [[maybe_unused]] uint8_t map_last, bool unprintable)
: vk_from(vk_first), vk_count(vk_first - vk_last + 1), map_to(map_first), unprintable(unprintable)
: vk_from(vk_first), vk_count(vk_last - vk_first + 1), map_to(map_first), unprintable(unprintable)
{
assert((vk_last - vk_first) == (map_last - map_first));
}

View File

@ -378,7 +378,7 @@ struct SDLVkMapping {
const uint8_t map_to;
constexpr SDLVkMapping(SDLKey vk_first, SDLKey vk_last, uint8_t map_first, [[maybe_unused]] uint8_t map_last)
: vk_from(vk_first), vk_count(vk_first - vk_last + 1), map_to(map_first)
: vk_from(vk_first), vk_count(vk_last - vk_first + 1), map_to(map_first)
{
assert((vk_last - vk_first) == (map_last - map_first));
}