| www.delorie.com/archives/browse.cgi | search |
| Message-ID: | <8D53104ECD0CD211AF4000A0C9D60AE3579360@probe-2.acclaim-euro.net> |
| From: | Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk> |
| To: | djgpp AT delorie DOT com |
| Subject: | Re: allegro keyboard |
| Date: | Mon, 22 Feb 1999 12:30:42 -0000 |
| MIME-Version: | 1.0 |
| X-Mailer: | Internet Mail Service (5.0.1460.8) |
| Reply-To: | djgpp AT delorie DOT com |
Jason Mullins writes:
> I need to grab the LEFT ALT key, but looking thru the header file,
> there is an ALT and a ALTGR, which one should I use?
Why not just try it and see? Eg:
#include <stdio.h>
#include <allegro.h>
int main()
{
allegro_init();
install_keyboard();
while (!key[KEY_ESC])
printf("KEY_ALT=%d, KEY_ALTGR=%d\n", key[KEY_ALT], key[KEY_ALTGR]);
return 0;
}
Shawn Hargreaves.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |