delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/05/16:01:40

From: "Elias Pschernig" <f DOT x DOT gruber-museum-arnsdorf AT magnet DOT at>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Orbiting Spheres?
Date: Tue, 5 May 1998 19:46:26 +0200
Organization: magnet Internet Services
Lines: 29
Message-ID: <6inpu6$g7d$1@orudios.magnet.at>
References: <000401bd75d9$069ac040$cf4b08c3 AT arthur>
NNTP-Posting-Host: 195.3.67.109
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>
>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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019