A85: Key Trapping


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

A85: Key Trapping




First off I made a routine for a game I'm writing that loops until a key
is pressed.  The keys it traps are the arrow keys, 2nd, and Exit.  The
problem is that whenever 2nd is pressed, it goes through the code so
fast that you have to very very quickly tap the 2nd key to make it
execute the 2nd routine only once.  I've tried setting up a delay at the
end of the 2nd rountine but it seems to freeze whenever I do that.  I
don't know much about them, but would using ports instead of GET_KEY
help?  Any ideas?  Thanks in advance,

 - Jim


Follow-Ups: