We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6559dc8 commit 049e660Copy full SHA for 049e660
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