From: "Florian Janoschek" Newsgroups: comp.os.msdos.djgpp References: <36646BFF DOT 77F3 AT gecm DOT nospam DOT com> Subject: Re: detecting multiple keypresses Date: Wed, 2 Dec 1998 14:55:22 +0100 Lines: 21 X-Newsreader: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 NNTP-Posting-Host: 195-189-162-28.arpa.zet.net Message-ID: <3665731c.0@news.zeitung-online.net> X-Trace: 2 Dec 1998 18:04:28 +0100, 195-189-162-28.arpa.zet.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >so say if(keyboard_keypressed('a')printf("a\n"); > if(keyboard_keypressed('b')printf("b\n"); >and the a and b buttons are both held down >a and b will be printed out. > >Is there a way of achieving this? You should program the keyboard directly. This may be quite difficult as you'll have to write your own keyboard interrupt handler, which should read the keyboard data from port 0x60 everytime a key is pressed. Perhaps allegro supports something like this... -- Best regards, Florian Janoschek http://blubisoftware.notrix.de