Fix input of trans-ASCII Unicode characters under SDL2

This commit is contained in:
Michael Martin
2022-08-17 19:08:54 -07:00
parent 5cc99564a7
commit e04c4cf2d6
+1
View File
@@ -470,6 +470,7 @@ ProcessInputEvent (const SDL_Event *Event)
while (Event->text.text[i]) while (Event->text.text[i])
{ {
UniChar map_key = Event->text.text[i++]; UniChar map_key = Event->text.text[i++];
map_key &= 0xFF; /* Interpret as unsigned byte */
/* Decode any UTF-8 keys */ /* Decode any UTF-8 keys */
if (map_key >= 0xC0 && map_key < 0xE0) if (map_key >= 0xC0 && map_key < 0xE0)