Mail Archives: djgpp/1999/08/11/21:06:57
From: | "guthrie" <guthrie AT nbnet DOT nb DOT ca>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | keyboard input ..again!
|
Date: | Tue, 10 Aug 1999 20:30:54 -0300
|
Organization: | NBTel Internet
|
Message-ID: | <7oqcn0$pkp$1@garnet.nbnet.nb.ca>
|
NNTP-Posting-Host: | pix142166196089.nbtel.net
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300
|
Lines: | 35
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
ok..i can access the normal keys .. ie the ones that are extention keys ...
you know alt, ctrl , shift , winl , winr , etc ???
i've been doing the following to tell what key has been pressed :
int key_shift
int key;
key = getch();
key_shift = ( key >> 8);
if (key_shift == 0x01) // Esc for example
{
then do this.....
}
So how can i get the scan_codes etc for these special keys?
do i have to do a bunch of asm with the KeyBoard flags byte?
Or is there an easier way?...
I'm probably just missing an easy way around this but im not seeing it.
Thanks to all of you that give help to people like myself.. you are really
helping me to get the fine details worked out in this amazing language!
Maybe i'll be able o return the favour someday
Thanks
Tony
- Raw text -