Re: TIB: Get Key
[Prev][Next][Index][Thread]
Re: TIB: Get Key
In a message dated 11/11/1998 6:13:04 PM Mountain Standard Time,
cyanide_hd@yahoo.com writes:
<< How would you make a program show a pic when one of the arrow keys is
pushed (like Doom, Quake, and all those 3-D shooters?). Does it have
to do with getky command? >>
Yes, basically. You need to use it in a loop. Something like this:
Lbl LOOP
getKy->Z
If Z==11 (F1)
Then
commands
End
If Z==22 (EXIT)
Then
commands
End
Goto LOOP
You can substitute the 11 and 22 for the corresponding key number for the key
you want. Here is a program that will let you figure out what the number is
for each key:
Lbl A
getKy->A
If A>0
Disp A
Goto A
Push a key and it will display on the screen the number for that key. Push ON
to stop the program. Hope that helps.
Dan