Skip to content

Commit

Permalink
Fix #12608: SDL keycode to vkey mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
JGRennison authored and rubidium42 committed May 7, 2024
1 parent 019f93a commit 8710e9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/video/sdl2_v.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
2 changes: 1 addition & 1 deletion src/video/sdl_v.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 8710e9b

Please sign in to comment.