| 957 | } |
| 958 | |
| 959 | void 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 | |
| 985 | void AndroidPlatform::BeforeExit() |
| 986 | { |
nothing calls this directly
no test coverage detected