[comp.sys.ibm.pc] Turbo Pascal Keyboard Scanning

rrwood@contact.uucp (roy wood) (02/21/91)

Can anyone provide any insight into how I might scan the keyboard from
within a Turbo Pascal program?  I know there is a facility for testing
whether there is a keystroke is waiting in the buffer, and a routine for
reading whatever keystrokes are there; however, I'd like to be able to just
look directly at whatever key has been struck, and get past that annoying
auto-repeat delay.  This is for use in an educational video game, so it's
important to have immediate response to keyboard input.
 
I'm sure that lots of people have done a similar thing, and I'd prefer not
to have to reinvent the wheel.  Can you help?  I'd appreciate it.
 
-Roy Wood (rrwood@contact.ca)