-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further work on getting alt codes working
More testing required, but SDL_iconv_utf8_ucs4() seems to do the trick!
- Loading branch information
1 parent
68cbba8
commit ca7f8ba
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -559,7 +559,7 @@ static void I_GetEvent(void) | |
case SDL_TEXTINPUT: | ||
{ | ||
ev.type = ev_textinput; | ||
ev.data1 = Event->text.text[strlen(Event->text.text) - 1]; | ||
ev.data1 = ((char *)SDL_iconv_utf8_ucs4(Event->text.text))[0]; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bradharding
Author
Owner
|
||
D_PostEvent(&ev); | ||
break; | ||
} | ||
|
Unfortunately it seems to be buggy, just checked with Doom 2,
SDL_iconv_utf8_ucs4
return NULL constantly here. Also side note if I read correctly the doc, it s dynamically allocated otherwise.