delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/01/22:15:25

From: DavMac AT iname DOT com (Davin McCall)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: RHIDE and Allegro
Date: Mon, 02 Aug 1999 02:08:39 GMT
Organization: Monash Uni
Lines: 42
Distribution: world
Message-ID: <37a4fc76.8866111@newsserver.cc.monash.edu.au>
References: <Pine DOT OSF DOT 4 DOT 10L DOT 9908012108230 DOT 28418-100000 AT alberti DOT unh DOT edu>
NNTP-Posting-Host: damcc5.halls.monash.edu.au
X-Trace: towncrier.cc.monash.edu.au 933559667 22766 130.194.198.138 (2 Aug 1999 02:07:47 GMT)
X-Complaints-To: abuse AT monash DOT edu DOT au
NNTP-Posting-Date: 2 Aug 1999 02:07:47 GMT
X-Newsreader: Forte Free Agent 1.1/32.230
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I don't use RHIDE or Allegro, but I'm willing to hazard a guess as to
what is happening (I've seen it with other IDEs). You have to hold
control (and maybe press something else) to run the program, by any
chance?

In that case:
-You press control, BIOS handler detects it and flags it
-You press the other key, BIOS detects it and passes it to Allegro (as
a control key, because control is being held)
-Your program runs, takes over the keyboard handler
-You release both keys, the Allegro handler is notified (but not the
BIOS handler)
-Your program finishes, points handler back at BIOS routine
-At this point, BIOS still thinks control is being held (ie, it is
still flagged as 'depressed') because its handler never got a "key
up".

The quick fix is to simply press and release control after your
program has finished. Or, you could wait until control is no longer
depressed in your program before installing the Allegro keyboard
handler.

Davin.


On Sun, 1 Aug 1999 21:10:58 -0400, Edward J Sanville
<edwards AT alberti DOT unh DOT edu> wrote:

>I have RHIDE version 1.4, and Allegro version 3.11.
>
>Whenever I try to compile one of my programs, (or even Shawn
>Hargreaves's), that uses the Allegro keyboard handler, it completely
>screws up the keyboard when I return to the RHIDE.  It acts like I'm
>constantly holding down the control key.  Anyone lese have this bizzare
>problem??  I think it may have started in Allegro version 3.1, and I'm
>surprised no one else has detected this weird bug.
>
>

__________________________________________________________
       *** davmac - sharkin'!! davmac AT iname DOT com ***
my programming page: http://yoyo.cc.monash.edu.au/~davmac/

- Raw text -


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