We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 967882f + 672360c commit 4ffa3acCopy full SHA for 4ffa3ac
android-activity/src/native_activity/input.rs
@@ -55,7 +55,8 @@ impl<'a> MotionEvent<'a> {
55
// `MotionAction` enum that we share between backends, which may also
56
// capture unknown variants added in new versions of Android.
57
let action =
58
- unsafe { ndk_sys::AMotionEvent_getAction(self.ndk_event.ptr().as_ptr()) as u32 };
+ unsafe { ndk_sys::AMotionEvent_getAction(self.ndk_event.ptr().as_ptr()) as u32 }
59
+ & ndk_sys::AMOTION_EVENT_ACTION_MASK;
60
action.into()
61
}
62
0 commit comments