Mail Archives: djgpp/1998/05/05/16:01:40
>
>Getting a little off topic, now so here's another little problem:
>
>Is there an easy way of patching the keyboard to register a number of
>different keys (say 6) being pressed at the same time? Of course there is,
>but how is it done?
>
>
AFAIK, there's NO way to do this. I've tried everything, but it never works.
I wanted to write a game for two players with split-screen, one should move
with cursor-keys, and one with <asdw>-keys (not to mention the "fire" and
"use" buttons i planned). But if two cursor keys are pressed at the same
time (not on the numeric keypad, but the grey ones, as i found out), the
keyboard doesn't recognize any other keypresses any longer.
So, if you find out something different from my experience, or any other
solution to my problem, please let me know. I really can't get on in the
moment.
I had an old computer once with 68000 processor, and there i could press as
many keys at the same time as i wanted. Who has created the architecture of
this damn windows-keyboards, or why can't i get the keypresses ???
If you just want the code, how it WOULD be done, look at the Allegro library
from Shawn Hargreaves.
Elias Pschernig
- Raw text -