Function ndk_glue::input_queue
source · [−]pub fn input_queue() -> Option<LockReadGuard<InputQueue>>
Expand description
Returns an InputQueue
held inside a lock, preventing Android from freeing it immediately
in its InputQueue
destructor.
After receiving Event::InputQueueDestroyed
ndk-glue
will block in Android’s InputQueue
destructor
callback until the lock is released, returning to Android and allowing it to free the window.
Warning
This function accesses a static
variable internally and must only be used if you are sure
there is exactly one version of ndk_glue
in your dependency tree.