Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Allowing unicode input

Name: Anonymous 2012-03-06 20:53

Hi there /prog/

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: Anonymous 2012-03-06 20:53

Your program shouldn't touch this shit, let the OS handle it.

Name: Anonymous 2012-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: Anonymous 2012-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.

Name: Anonymous 2012-03-06 21:32

>>4
Thank you.

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.

Name: Anonymous 2012-03-07 14:05

Bump for interest

Name: Anonymous 2012-03-07 15:32

>>1
Perl6

Name: 7 2012-03-07 15:33

Name: Anonymous 2012-03-07 15:40

>>7
You funny guy, SEBUN-san!

Don't change these.
Name: Email:
Entire Thread Thread List