Skip to content

Commit

Permalink
SDL_Keycode became unsigned in SDL3
Browse files Browse the repository at this point in the history
  • Loading branch information
texus committed May 9, 2024
1 parent cba9d33 commit 9967a77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/BackendEvents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,11 @@ TEST_CASE("[Backend events]")

SECTION("All key codes")
{
#if SDL_MAJOR_VERSION >= 3
std::array<std::pair<uint32_t, tgui::Event::KeyboardKey>, 101> keys = {{
#else
std::array<std::pair<int32_t, tgui::Event::KeyboardKey>, 101> keys = {{
#endif
{SDLK_a, tgui::Event::KeyboardKey::A},
{SDLK_b, tgui::Event::KeyboardKey::B},
{SDLK_c, tgui::Event::KeyboardKey::C},
Expand Down

0 comments on commit 9967a77

Please sign in to comment.