Structs§
Enums§
Constants§
ndk-glue
macros register the reading end of an event pipe with the mainThreadLooper
under thisident
. When returned fromThreadLooper::poll_*
an event can be retrieved frompoll_events()
.- The
InputQueue
received from Android is registered with the mainThreadLooper
under thisident
. When returned fromThreadLooper::poll_*
an event can be retrieved frominput_queue()
.
Functions§
- This function accesses a
static
variable internally and must only be used if you are sure there is exactly one version ofndk_glue
in your dependency tree. - init⚠Safety
- Returns an
InputQueue
held inside a lock, preventing Android from freeing it immediately in itsInputQueue
destructor. - This function accesses a
static
variable internally and must only be used if you are sure there is exactly one version ofndk_glue
in your dependency tree. - Returns a
NativeWindow
held inside a lock, preventing Android from freeing it immediately in itsNativeWindow
destructor.