Mail Archives: djgpp/1997/06/25/11:19:36

From: NOdbrotherhood AT geocities DOT comSPAM (Michael D. Ryan)
Newsgroups: comp.os.msdos.djgpp
Subject: ALLEGRO: Keyboard reading help...
Date: Wed, 25 Jun 1997 00:11:48 GMT
Organization: Brotherhood Software
Lines: 27
Message-ID: <>
Reply-To: NOdbrotherhood AT geocities DOT comSPAM
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I want to be able to interpret an alt code from the keyboard using
allegro.  I have tried doing it the way it says in the allegro.txt and
it doesn't work.


int ch, int key;

key = KEY_F;
ch = readkey();
if (ch == (key << 8)) do_whatever();
else didnt_work();

It doesn't seem to recognize the keys.  I have tried a whole bunch of
different combinations and no luck.

Any help?

Michael D. Ryan [Brotherhood Software] dbrotherhood AT geocities DOT com
Web Page:
Shareware Trakker:
Items For Sale:
NOTE: REMOVE "NO" and "SPAM" from my address to email me.

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019