Daniel Wyatt to slouken
I also found a bug in the non-printable character fix. In SDL_keyboard.c:SDL_SendKeyboardText: if (*text < ' ' || *text == 127) { needs to be: if ((unsigned char)*text < ' ' || *text == 127) { Otherwise bytes >= 128 will be considered non-printable.
This commit is contained in:
parent
106aea6ed1
commit
b0a24ac840
1 changed files with 1 additions and 1 deletions
|
@ -768,7 +768,7 @@ SDL_SendKeyboardText(const char *text)
|
|||
int posted;
|
||||
|
||||
/* Don't post text events for unprintable characters */
|
||||
if (*text < ' ' || *text == 127) {
|
||||
if ((unsigned char)*text < ' ' || *text == 127) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue