File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
android-activity/src/native_activity Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ impl<'a> MotionEvent<'a> {
51
51
/// See [the MotionEvent docs](https://developer.android.com/reference/android/view/MotionEvent#getActionMasked())
52
52
#[ inline]
53
53
pub fn action ( & self ) -> MotionAction {
54
- // XXX: we use `AInputEvent_getAction ` directly since we have our own
55
- // `KeyAction ` enum that we share between backends, which may also
54
+ // XXX: we use `AMotionEvent_getAction ` directly since we have our own
55
+ // `MotionAction ` enum that we share between backends, which may also
56
56
// capture unknown variants added in new versions of Android.
57
- let action = unsafe { ndk_sys:: AKeyEvent_getAction ( self . ndk_event . ptr ( ) . as_ptr ( ) ) as u32 } ;
57
+ let action = unsafe { ndk_sys:: AMotionEvent_getAction ( self . ndk_event . ptr ( ) . as_ptr ( ) ) as u32 } ;
58
58
action. into ( )
59
59
}
60
60
You can’t perform that action at this time.
0 commit comments