Skip to main content
GameDev.net gamedev.net
🔒 Locked

SDL problem with UNICODE

Started by headhunter_pl Jun 1, 2006 at 3:28 AM 1 replies 800+ views
Original Post
headhunter_pl
headhunter_pl
Probably the topic was discussed lots of times, but Google said nothing about that :). Here's my problem. After SDL initialization I have SDL_EnableUNICODE(SDL_ENABLE); In the main loop I am polling the event SDL_PollEvent(&event) and when event.type is SDL_KEYDOWN I am trying to get the event.key.keysym.unicode . The value of event.key.keysym.unicode is always 0 when I am using any international keyboard layout :/. I am doing this under Linux/KDE environment. When I use standart english keyboard layout everything is OK, when I switch to some other (say Cyrillic, cuz the chars there are definitely different) I receive zeros. Anyone has an idea whet could be the problem? Thanx for any responce, Pavel
Ravuya
Ravuya
Not sure, but I have the same problem under Windows with English keyboards. I suspect that Unicode support isn't included on the Windows version.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.