SDL or PyGame

Basically, how is non-Western input handled in SDL or OpenGL games or applications? Googling shows him http://sdl-im.csie.net/ , but it seems that it is no longer supported and not available. I had to use the Google cache to view the page .

To clarify, I don't have any problem in terms of an application displaying text in non-Western languages ​​for users. This is a resolved issue. There are many unicode fonts available and many ways to process text in glyphs and then on the display surface.

I foul in the opposite direction. Even if my program can safely process text data in any arbitrary encoding, there is no way that users can actually enter their name if it includes a character that requires more than one keystroke.

+5
source share
3 answers

Interested in you SDL_EnableUNICODE(). When you enable translation in Unicode, you can use the unicodestructure field SDL_keysymto get the Unicode character based on the key you entered.

, , , (, ), unicode, .

YATC. , , unicode.

+3

, .

SDL, OpenGL , /, , .

OpenGL, .ttf-.

+1

, Google , X11 MacOS X

0

All Articles