Re: A82: multiple keypresses


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

Re: A82: multiple keypresses



At 04:43 PM 12/3/97 -0500, you wrote:
>Hey.  Blockbuster (the game I'm working on) is going quite well.  For
>the next part, I need to know how to read multiple keypresses, like if
>2nd and down are being pressed at the same time.  I assume this would
>use the keyboard port.  How would I go about doing this?  Thanks!
>
>--
>Doug Torrance
>profzoom@earthling.net
>http://profzoom.home.ml.org
>(:  Have a happy day!  :)

MULTI_KEY is a routine that I designed for detecting multiple keypresses on
the 82.  It will even detect the [ON] key!  It has an extremely simple
syntax (similar to TI-BASIC's GetKey statement) and is faster (and usually
smaller) than any other routine available.  It also does one more thing
than standard keypad routines that detect multiple keys...it only detects
the key you want and filters out the ones your don't!

Only bug with MULTI_KEY (and all other keypad routines) is the "ghost key"
bug.  It requires 3 specific keys to press the fourth key (even though you
are not pressing it...hence the name "ghost key").  In order to fix this
problem you would need to re-wire the keypad which most of us wouldn't
bother to do in the first place.  Also, it is fairly complicated to come up
with ghost key combinations, so don't worry about it too much.


                 Thomas J. Hruska -- thruska@tir.com
Shining Light Productions -- "Meeting the needs of fellow programmers"
         http://www.geocities.com/SiliconValley/Heights/8504
                    http://shinelight.home.ml.org

  Spam-Fighter code is:  14806560   (New technique to fighting spam)
  Enter "Spam-Fighter:  XXXXXXXX" in the body of a personal message
  to thruska@tir.com.  Otherwise the message will be filtered as spam.


References: