Advertisement

WM_CHAR for SDL

Started by January 04, 2005 01:00 AM
1 comment, last by cow_in_the_well 19 years, 8 months ago
Hi, I'm currently trying to implement general text input in my SDL application (ie. for an ingame edit control). In win32, the message WM_CHAR gives a translated character that I can directly feed into the text buffer, as it handles the shift key, etc. Is there any SDL equivalent?? I can't find anything in the docs :(. Currently, I'm manually adjusting letters to upper case if the shift key is pressed, and mapping keys to symbols (ie. shift+2==@). This is okay, except its kind of icky, and this is assuming a certain keyboard layout. Any ideas?

- Thomas Cowellwebsite | journal | engine video

Check out SDL_EnableUNICODE.
Advertisement
!

That works great! [smile] It'd be nice if they said what unicode translation means in the docs. I didnt really look at that function properlly since I'm not using Unicode itself :P.

Thanks.

- Thomas Cowellwebsite | journal | engine video

This topic is closed to new replies.

Advertisement