MCPcopy Create free account
hub / github.com/golang/mobile / processEvents

Function processEvents

app/android.go:389–398  ·  view source on GitHub ↗
(env *C.JNIEnv, q *C.AInputQueue)

Source from the content-addressed store, hash-verified

387}
388
389func processEvents(env *C.JNIEnv, q *C.AInputQueue) {
390 var e *C.AInputEvent
391 for C.AInputQueue_getEvent(q, &e) >= 0 {
392 if C.AInputQueue_preDispatchEvent(q, e) != 0 {
393 continue
394 }
395 processEvent(env, e)
396 C.AInputQueue_finishEvent(q, e, 0)
397 }
398}
399
400func processEvent(env *C.JNIEnv, e *C.AInputEvent) {
401 switch C.AInputEvent_getType(e) {

Callers 1

runInputQueueFunction · 0.85

Calls 1

processEventFunction · 0.85

Tested by

no test coverage detected