SDL-mirror/android-project
Sam Lantinga 424dd9d921 Fixed bug 2558 - Missing FINGERUP in Android
Sylvain

If you play with the TouchScreen with +3 fingers randomly / pressing simultaneously all fingers.

You triggers FINGER DOWN events, but not always all the associated FINGER UP events.

So, after a while SDL_GetNumFingers() can report a wrong number of fingers pressed !


The explanation is hidden there : http://developer.android.com/reference/android/view/MotionEvent.html

Each pointer has a unique id that is assigned when it first goes down (indicated by ACTION_DOWN or ACTION_POINTER_DOWN).
A pointer id remains valid until the pointer eventually goes up (indicated by ACTION_UP or ACTION_POINTER_UP) or when the gesture is canceled (indicated by ACTION_CANCEL).

in ACTION_CANCEL :

The current gesture has been aborted. You will not receive any more points in it. You should treat this as an up event, but not perform any action that you normally would.
Constant Value: 3 (0x00000003)
2014-06-15 19:32:39 -07:00
..
jni Adds testgles2 2013-11-19 10:56:38 -03:00
res Fixed bug 1779 - SDL's Android project template has old default icons from Android. 2013-04-02 07:55:25 -07:00
src/org/libsdl/app Fixed bug 2558 - Missing FINGERUP in Android 2014-06-15 19:32:39 -07:00
AndroidManifest.xml [Android] Fixes #2247, enable hardware acceleration by default. 2013-11-22 10:26:28 -03:00
ant.properties Updated the Android project template and README.android 2012-11-02 02:37:49 -07:00
build.properties Added the Android project and lots of info to README.android 2011-01-06 17:12:31 -08:00
build.xml Updated the Android project template and README.android 2012-11-02 02:37:49 -07:00
default.properties Adds Joystick support for Android 2013-11-05 20:07:39 -03:00
proguard-project.txt Updated the Android project template and README.android 2012-11-02 02:37:49 -07:00
project.properties Adds Joystick support for Android 2013-11-05 20:07:39 -03:00