|
getting unichar chars in C |
Bob Keane
Member #7,342
June 2006
|
I am trying to write a game in C and have a few questions. I need to get user input and found this thread doing something similar. However, it appears to be C++, is there an equivalent for C? By reading this sig, I, the reader, agree to render my soul to Bob Keane. I, the reader, understand this is a legally binding contract and freely render my soul. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Your link is broken. Basically, you want to monitor ALLEGRO_EVENT_KEY_CHAR events. It will give you both the keycode and the unichar code. Do what you want with them. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Bob Keane
Member #7,342
June 2006
|
I think I see it now. Thanks. Fixed the link. By reading this sig, I, the reader, agree to render my soul to Bob Keane. I, the reader, understand this is a legally binding contract and freely render my soul. |
Neil Roy
Member #2,229
April 2002
|
I accept unicode characters in my own Deluxe Pacman games (see sourcecode at link in sig). You can check out my highscore input routines specifically which accept unicode. This is all written in C as well, no C++ in it. --- |
Bob Keane
Member #7,342
June 2006
|
Thanks, I'll check it out. By reading this sig, I, the reader, agree to render my soul to Bob Keane. I, the reader, understand this is a legally binding contract and freely render my soul. |
|