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.
1 parent 9fce890 commit 672360cCopy full SHA for 672360c
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