Re: [AD] ALLEGRO_KEYBOARD_STATE improvement

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


On 2008-10-13, Ryan Patterson <cgamesplay@xxxxxxxxxx> wrote:
> Using the event system does not let me determine what the current
> foreground window is. Broadcasting an event when the display switches
> is an important part of the API, but it's not a substitute for
> querying the state of the library. In fact, suggesting that I should
> use the event system for that means that I need to duplicate the
> entire state of the library in my code.
> 
> If I created an API to query the current foreground display, would it
> be accepted?

Maybe.  I don't see what's wrong with al_get_keyboard_state().

> On Sun, Oct 12, 2008 at 11:01 PM, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> > On 2008-10-12, Ryan Patterson <cgamesplay@xxxxxxxxxx> wrote:
> >> On Sun, Oct 12, 2008 at 6:10 PM, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> >> > The window that was in focus when you called al_get_keyboard_state().
> >>
> >> Okay. Also, that means that presently, the only way to determine the
> >> foreground window is to call al_get_keyboard_state(). I hope that a
> >> proper API for that is planned.
> >
> > You mean, if not using the event system?
> >
> > Peter
> >
> -- 
> Regards,
> Ryan Patterson <mailto:cgamesplay@xxxxxxxxxx>
> 
> P.S. You seem to be trying to use a bcc, but it isn't working (I can see it).

Weird.  I only have it to work around gmail not forwarding my own
replies back to my inbox.

Peter

PS. Please don't top post.






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