getting unichar chars in C
Bob Keane

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?

Edgar Reynaldo

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. ;)

Bob Keane

I think I see it now. Thanks. Fixed the link.

Neil Roy

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

Thanks, I'll check it out.

Thread #617812. Printed from Allegro.cc