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 }
FYI
http:// developer. android. com/reference/ android/ view/MotionEven t.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 : EVENT_ACTION_ MASK; } EVENT_ACTION_ POINTER_ INDEX_MASK) EVENT_ACTION_ POINTER_ INDEX_SHIFT;
324 inline int32_t getActionMasked() const { return mAction & AMOTION_
325
326 inline int32_t getActionIndex() const {
327 return (mAction & AMOTION_
328 >> AMOTION_
329 }