Re: A86: get_key
[Prev][Next][Index][Thread]
Re: A86: get_key
In a message dated 9/13/98 12:17:07 PM Eastern Daylight Time,
Jeanne9005@aol.com writes:
> what is the difference between the 2???? i know 1 uses more battery, but
what
> else?
>
GET_KEY doesn't pause, so you can have that in a game where stuff happens
whether or not you press a key
_getkey pauses until a key is pressed.
also, _getkey allows for contrast adjustment, and cannot detect the 2nd and
alpha keys, whereas in GET_KEY, 2nd and alpha are just like any other key.
if you want to use GET_KEY but also want to wait until a key is pressed, use
this subroutine when you want to get a key instead of calling GET_KEY
getkey:
call GET_KEY
or a ;returns 0 if no key pressed
jr z,getkey ;get another keypress
ret