[AD] [alleg:bugs] #390 Android multi-touch input error

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



[bugs:#390] Android multi-touch input error

Status: closed
Created: Tue Dec 03, 2013 06:56 AM UTC by MaxEd
Last Updated: Thu Dec 05, 2013 12:01 PM UTC
Owner: nobody

On Android, when one touch ends, the next moved touch will receive invalid values. This happens because there is an invalid assumption in android_touch_input_handle_end/find_touch_state_with_id in android/android_touch.c: it is assumed that touch with id=0 is free. In reality, the first touch has a valid id=0.

Therefore, when we call find_touch_state_with_id( 0 ), it will, as luck would have it, return either real state for the first touch, or the last freed state.

Proposed patch attached.


Sent from sourceforge.net because alleg-developers@xxxxxxxxxx is subscribed to https://sourceforge.net/p/alleg/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alleg/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.



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