mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-17 02:43:26 +00:00
Merge pull request #469 from aginor/sdl2
Quck fix for textbox input under SDL2
This commit is contained in:
commit
a3e8ee38f5
@ -585,7 +585,7 @@ void textbox::handle_event(const SDL_Event& event, bool was_forwarded)
|
||||
}
|
||||
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
ucs4::char_t character = key.scancode;
|
||||
ucs4::char_t character = key.sym;
|
||||
#else
|
||||
ucs4::char_t character = key.unicode;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user