Re: [AD] user-defined events

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


On 2008-10-10, Peter Hull <peterhull90@xxxxxxxxxx> wrote:
> Is it possible to have an event source that polls? What I mean is that
> it only generates an event when the user tries to get an event from
> its queue (or it blocks if there is no event).

No.  Not at present, anyhow.

> I was thinking of things like mouse moves or joystick moves - if the
> computer's a bit too slow it could flood the queue with useless events
> (e.g. I think a USB HID device can generate a new report every
> millisecond)

If it turns out to be a problem, we can try to figure something out.
Maybe just generate less events?  I can't really see a joystick or mouse
generating 1000 *useful* events per second.

Peter





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