• Advertisement
Sign in to follow this  

WM_CHAR for SDL

This topic is 4768 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement