Re: [AD] Touch input, new emulation mode

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


On Wed, 2011-03-23 at 19:07 -0400, Evert Glebbeek wrote:
> On 23 Mar 2011, at 19:01 , Michał Cichoń wrote:
> > Trentg need old behavior, where distinct touches were reported as
> > different mouse buttons. After Trentg commit his patch another call
> > should be made do enable the old way:
> > al_set_mouse_emulation_mode(ALLEGRO_MOUSE_EMULATION_BACKWARDS_COMPATIBLE);
> 
> Ok.
> I'd call it something different though. Calling it "BACKWARD_COMPATIBLE" is pretty vague.
> Maybe something along the lines of "ALLEGRO_REPORT_TOUCH_AS_BUTTON"?

The significant part is that it reports multiple touches, the
event.button is mostly useless in this mode. To work with it you have to
manually track touches, which is what the new touch input driver does.
The main difference between regular mouse emulation and the new mode is
that you'll get MOUSE_DOWN/MOVE/UP events for multiple fingers.

Trent





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