We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6559dc8 + 049e660 commit 924e540Copy full SHA for 924e540
1 file changed
android-activity/src/game_activity/input.rs
@@ -332,7 +332,7 @@ impl<'a> MotionEvent<'a> {
332
/// or [`PointerDown`](MotionAction::PointerDown).
333
#[inline]
334
pub fn pointer_index(&self) -> usize {
335
- let action = self.action as u32 & ndk_sys::AMOTION_EVENT_ACTION_MASK;
+ let action = self.action as u32;
336
let index = (action & ndk_sys::AMOTION_EVENT_ACTION_POINTER_INDEX_MASK)
337
>> ndk_sys::AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT;
338
index as usize
0 commit comments