Re: [AD] BeOS : keyboard problem

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


 --- Angelo Mottola <a.mottola@xxxxxxxxxx> a écrit : > > There is a focus problem
with the keyboard.
> > Indeed, if the program is not currently selected but running all the
> > same (no
> > gfx_mode set or BACKGROUND set), keyboard routines are effective!
> > I discovered that by using DUMB on BeOS
> > I am listening to a music and when I hit a key for example to write
> > an e-mail, it
> > shut down the allegro program!
> >
> > Is there a way to fix that?
> 
> I've just applied a small patch in cvs that (partially) fixes the
> problem. Allegro programs will now not detect keystrokes if their
> window is not focused; there's a problem with dumb though as its
> example programs do not create a window at all, so there's no way for
> Allegro to detect if the program got focus or not... Generally with
> interactive Allegro programs it's always better for them to create a
> window, as some Allegro features may not work properly otherwise; this
> is also the case under QNX, where the Allegro keyboard subsystem will
> not even work if the program hasn't created a window first.
> 
> --
> Angelo Mottola
> lillo@xxxxxxxxxx
>  
I added a window in DUMB's examples since BACKGROUND mode works fine, that solves
the problem for dumb :)
Thanks for the patch!



___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/