MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Tick

Method Tick

Source/Engine/Platform/Android/AndroidPlatform.cpp:959–983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957}
958
959void AndroidPlatform::Tick()
960{
961 UnixPlatform::Tick();
962
963 // Pool app events
964 int events;
965 android_poll_source* source;
966 while (ALooper_pollAll(0, nullptr, &events, reinterpret_cast<void**>(&source)) >= 0)
967 {
968 // Process event
969 if (source != nullptr)
970 {
971 source->process(App, source);
972 }
973
974 // Check if exit
975 if (App->destroyRequested != 0)
976 {
977 Engine::RequestExit();
978 return;
979 }
980 }
981
982 UpdateOrientation();
983}
984
985void AndroidPlatform::BeforeExit()
986{

Callers

nothing calls this directly

Calls 2

UpdateOrientationFunction · 0.85
processMethod · 0.45

Tested by

no test coverage detected