-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Description
Could we maybe put this behind a feature, or ?
Or could we just make that ndk_event field publicly accessible?
I think I need this for a drawing app. I say "think" since I haven't really experimented with the events yet, but I use the equivalent "coalesced touches" on iOS.
android-activity/android-activity/src/native_activity/input.rs
Lines 122 to 140 in 1652ebb
| /* | |
| XXX: Not currently supported with GameActivity so we don't currently expose for NativeActivity | |
| either, for consistency. | |
| /// Returns the size of the history contained in this event. | |
| /// | |
| /// See [the NDK | |
| /// docs](https://developer.android.com/ndk/reference/group/input#amotionevent_gethistorysize) | |
| #[inline] | |
| pub fn history_size(&self) -> usize { | |
| self.ndk_event.history_size() | |
| } | |
| /// An iterator over the historical events contained in this event. | |
| #[inline] | |
| pub fn history(&self) -> HistoricalMotionEventsIter<'_> { | |
| self.ndk_event.history() | |
| } | |
| */ |
Metadata
Metadata
Assignees
Labels
No labels