Mir

Comment 3 for bug 1311699

Revision history for this message
Sylvain Becker (sylvain-becker) wrote :

FYI

http://developer.android.com/reference/android/view/MotionEvent.html

you should handle
ACTION_CANCEL like ACTION_UP for all FingerId
ACTION_UP, ACTION_DOWN
POINTER_ACTION_UP and POINTER_ACTION_DOWN requires the use of getActionIndex()

mir/3rd_party/android-input/android/frameworks/base/include/androidfw/Input.h :
324 inline int32_t getActionMasked() const { return mAction & AMOTION_EVENT_ACTION_MASK; }
325
326 inline int32_t getActionIndex() const {
327 return (mAction & AMOTION_EVENT_ACTION_POINTER_INDEX_MASK)
328 >> AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT;
329 }