Do I need to compile my binary in a certain way, or do I need to send a message to the operating system for unicode input? Right now my custom input widget class works great with my EN keyboard, but I'm not able to switch keyboard layouts and use my secondary keyboard layout.
How could I do this?
Name:
Anonymous2012-03-06 20:53
Your program shouldn't touch this shit, let the OS handle it.
Name:
Anonymous2012-03-06 20:55
>>2
How can I allow the user to change keyboard layouts with my custom form widget? It's currently stuck on the "EN" keyboard in my program, I'm not able to switch keyboard layouts when my program is focused.
Name:
Anonymous2012-03-06 21:13
You shouldn't have to do anything special besides using wide strings (wchar_t, assuming C/C++) and not assuming that one stored character==one printed character. Going outside the Basic Multilingual Plane could cause problems. Depending on the OS you may receive two surrogate characters or single values above 0xFFFF.
Right now I'm able to display unicode characters just fine, but I'm not sure how to allow the user to switch keyboard layouts when my program is focused. I made a form class for my OpenGL application that resembles a traditional text field, but I'd also like to be able to use different keyboard layouts.