(env *C.JNIEnv, q *C.AInputQueue)
| 387 | } |
| 388 | |
| 389 | func 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 | |
| 400 | func processEvent(env *C.JNIEnv, e *C.AInputEvent) { |
| 401 | switch C.AInputEvent_getType(e) { |
no test coverage detected