Xref: utzoo comp.sys.ibm.pc:33116 rec.games.programmer:1093 comp.lang.pascal:2212 comp.lang.c:20633 comp.sys.misc:2424
Path: utzoo!attcan!uunet!mcvax!hp4nl!eutrc3!wsinpvb
From: wsinpvb@eutrc3.urc.tue.nl (p.v.bemmelen)
Newsgroups: comp.sys.ibm.pc,rec.games.programmer,comp.lang.pascal,comp.lang.c,comp.sys.misc
Subject: Reading the keyboard
Keywords: keyboard scancodes
Message-ID: <835@eutrc3.urc.tue.nl>
Date: 12 Aug 89 18:08:07 GMT
Organization: Eindhoven University of Technology, The Netherlands
Lines: 16


Hello
I am writing a program (in fact a game) that needs to read the keyboard.
Of course the standard method is not good enough because it has a delay
before the key starts repeating, and if you press multiple keys the result
is incorrect.
What i need is the following:
the user should be able to press multiple keys, and the program should
detect all of them, not just the last one pressed.
The program should read which keys are pressed at that moment, not which
have been pressed lately

I believe this requires programming of the keyboard controller, or reading portsdirectly. The language is Turbo Pascal 4,5 of 5.5, but examples in C or assembler are also welcome. Using the intr() function is no problem.

Greetings
wsinpvb@eutrc3.UUCP