Re: [AD] new pointer API

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




On 3/18/06, Peter Wang <tjaden@xxxxxxxxxxxxxx> wrote:
On 2006-03-18, Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
>
> Of course you can't really KNOW if people wont make touch or multiple
> pointer applications, as its not currently even remotely possible in
> Allegro. Personally, I'd like things to be complete. Not to limit the user
> too awefuly much.

I think the additional effort is not worth the gain.  Similarly for
multiple keyboard support.

I guess its a matter of oppinion. 

> > It's not hard and it would be useful, but it would introduce a
> > dependency between the mouse drivers and keyboard drivers so I'm not
> > sure we want to do that.
>
> This one is a little difficult.. It would be nice if the mouse "can" attempt
> to check the modifier state, just to keep the two in sync. I could see the
> keyboard and mouse state get out of sync, when checking the event queue for
> a mouse press, then attempting to check the key modifiers.

Event queues are accessed in a strict FIFO manner, so I don't see why
they would become out of sync.  Also, if the mouse "can" attempt to
check modifiers state, does that mean it's unreliable?  That would be
unusable.

True.
 

> I wonder if it would be usefull to use the "time" to sync events, and grab
> events in the order they have in thier time field. Or something similar..

I'm not sure what you mean.  Events are inserted into queues in the
order that they arrive.  They also have a timestamp but we don't use
that to determine their relative orders.

So modifiers are sent in every keyboard event? in the current api, they are just a simple set of flags, and will change before/after a users key handling checks normal keys.
 

Peter

--
Thomas Fjellstrom
http://www.strangesoft.net
tfjellstrom@xxxxxxxxxx

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