Closed sannyun closed 1 year ago
Given AMOTION_EVENT_ACTION_MASK is 0xff and AMOTION_EVENT_ACTION_POINTER_INDEX_MASK is 0xff00, this function always returns 0. Looks like ANDing with AMOTION_EVENT_ACTION_MASK should be removed.
AMOTION_EVENT_ACTION_MASK
AMOTION_EVENT_ACTION_POINTER_INDEX_MASK
Thanks, yeah this looks wrong. I doubt I was planning to validate the action and probably just made a mistake at the time, oops.
Given
AMOTION_EVENT_ACTION_MASK
is 0xff andAMOTION_EVENT_ACTION_POINTER_INDEX_MASK
is 0xff00, this function always returns 0. Looks like ANDing withAMOTION_EVENT_ACTION_MASK
should be removed.