WM_CHAR for SDL
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
!
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.
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
Popular Topics
Advertisement