Jump to content
  • Advertisement
Sign in to follow this  
cow_in_the_well

WM_CHAR for SDL

This topic is 5040 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!