Date: Wed, 9 Sep 1998 19:42:20 +0300 (IDT) From: Eli Zaretskii To: Satyr cc: djgpp AT delorie DOT com Subject: Re: Obtaining Alt/Control/Shift keypresses? (DJGPP/Allegro) In-Reply-To: <35F67B75.FA53A299@pobox.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Wed, 9 Sep 1998, Satyr wrote: > I'm looking for a way to detect the keypresses on the shift/alt/control > keys (i.e. the modifier keys) at the time they're hit as well as when > they're released. What is the recommended way to do this with DJGPP and > Allegro, other than writing an interrupt handler? I'm not aware of any method to detect both a keypress and key release except by installing a hardware interrupt handler. The two events generated by the keyboard for press and release are consumed in the keyboard handler and never seen after that. A BIOS function call, or a peek at certain address in the BIOS data area can tell you whether the modifier keys are pressed or released, but that's not what you want, if I understand correctly.