[A83] GetKey loops
[Prev][Next][Index][Thread]
[A83] GetKey loops
When running a getkey loop, does the getkey repeatedly set 0 to 'a'
if no key is pressed? Should 'a' be reset to 0 before running a
getkey loop? Basically what I want to do is run a loop that jumps to
a spot if the [ENTER] or [LEFT ARROW] key is pressed, and jumps to a
different spot if any other key is pressed....Here's what I got so
far...:
KeyLoop:
B_CALL GetKey
cp kEnter
jr z,Label1
cp kLeft
jr z,Label2
cp kEnter
jr nz,Label3
jr KeyLoop
Would this work to jump to label3 if any key except enter or the left
arrow is pressed? Thanks in advance...
-Tom Lutz
caffeine43@netzero.net on 05/21/2001