www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/16/02:40:54

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: A few Allegro/Rhide problems :P
Date: 16 Feb 1997 05:01:08 GMT
Organization: The National Capital FreeNet
Lines: 42
Message-ID: <5e64ak$sji@freenet-news.carleton.ca>
References: <5e0qlf$bf9 AT freenet-news DOT carleton DOT ca> <Yze1LwAKINBzEwsG AT talula DOT demon DOT co DOT uk>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet2.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Shawn Hargreaves (Shawn AT talula DOT demon DOT co DOT uk) writes:
> Paul Derbyshire writes:
>>Allegro bug #1: Ctrl-Alt-End does not always work. It often does, but it
>>  occasionally doesn't.
> 
> What happens when it doesn't? Nothing, or a lockup? When it doesn't
> work, does pressing it again immediately afterwards do the trick?

Program just keeps running as if nothing were pressed. I wrote into the
mainloop a detector for the ESC key to exit. Strangely enough, whenever
ctrl-alt-end is not working, esc does work, and if esc fails,
ctrl-alt-end works!

>>Allegro bug #2: This doesn't work either, though it should:
>>
>>if(key[KEY_CONTROL] && key[KEY_STOP]) abort_program();
> 
> Again, what happens when it goes wrong? I just wrote a little test:
> 
>     #include <allegro.h>
> 
>     void main()
>     {
>         allegro_init();
>         install_keyboard();
> 
>         for (;;) {
>             if (key[KEY_CONTROL] && key[KEY_STOP])
>                 break;
>         }
>     }

It just doesn't appear to notice the keypresses. I think maybe either
RHIDE or CWSDPMI might be capturing the STOP key.

k
--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


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