Re: A86: get_key


[Prev][Next][Index][Thread]

Re: A86: get_key




_getkey doesn't pause.  2nd and alpha can be detected with flags.

>
>_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
>