www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/09/12:45:53

Date: Wed, 9 Sep 1998 19:42:20 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Satyr <satyr AT pobox DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Obtaining Alt/Control/Shift keypresses? (DJGPP/Allegro)
In-Reply-To: <35F67B75.FA53A299@pobox.com>
Message-ID: <Pine.SUN.3.91.980909193934.2901P-100000@is>
MIME-Version: 1.0

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.

- Raw text -


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