Replies: 1 comment
-
|
Unfortunately the motion event history isn't currently exposed in the public API. Technically if you can guarantee your code will only ever run against the
Now it looks like Lets continue the discussion in issue #207 which you opened. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As the Android docs explain, a move event can have a batched history. I want to get this because I'm implementing a drawing app, and I want the fine-grain locations from the stylus. But I see comment in code here that it's not exposed.
It appears that this
MotionEventevent fromandroid-activityis just a wrapper around theMotionEventfrom thendkcrate. That one does expose the history, but the conversion functioninto_ndk_eventispub(crate)so I don't think I can call it.I'm calling
poll_eventsonAndroidAppand I'm getting these various event types fromandroid-activity. How do I get to thendkevent so I can get the history?Beta Was this translation helpful? Give feedback.
All reactions