Mail Archives: djgpp/1998/03/09/12:14:06
Ove Kaaven writes:
>> At this point something weird happens: my keyboard behaves as if
>> I had the Control key pressed all the time. I have to quit rhide
>> and re-enter it to fix this problem.
>
> I usually had this problem too. When you hit Ctrl-F9 to start the
> program, and release the Ctrl only *after* install_keyboard() is
> called, the BIOS never gets to know that you did release it, so when
> you return it still thinks you do. It's easy to fix when it happens,
> just hit Ctrl again after the program exits, or just release the Ctrl
> faster when you run it.
That certainly used to be the case, but I thought it was fixed in
Allegro 3.0 (the keyboard handler now writes the updated shift state
into an internal BIOS memory location during the shutdown process).
Are you using Allegro 3.0, and are you sure this exit code is being
called correctly, ie. did you remember to call allegro_init() at
the start of your program?
Shawn Hargreaves.
- Raw text -