Mail Archives: djgpp/1998/09/09/12:45:53
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 -