MCPcopy Create free account
hub / github.com/ConfettiFX/The-Forge / processAllEvents

Function processAllEvents

Common_3/OS/Android/AndroidBase.cpp:496–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496void processAllEvents(android_app* app, bool* windowReady, int* cancelationToken)
497{
498 ASSERT(app);
499 ASSERT(windowReady);
500 ASSERT(cancelationToken);
501
502 while (!(*cancelationToken))
503 {
504 // Used to poll the events in the main loop
505 int events;
506 android_poll_source* source;
507 if (ALooper_pollAll(*windowReady ? 1 : 0, NULL, &events, (void**)&source) >= 0)
508 {
509 if (source != NULL)
510 source->process(app, source);
511 }
512 }
513}
514
515void queryAndSetRefreshRates(JNIEnv* pJNI, android_app* android_app)
516{

Callers 1

AndroidMainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected