1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-27 17:10:57 +01:00

Examples: Android+OpenGL: Using ALooper_pollOnce() instead of ALooper_pollAll(). (#8013)

This commit is contained in:
ocornut 2024-11-04 14:24:54 +01:00
parent 71c77c081a
commit f77d22837c
2 changed files with 4 additions and 2 deletions

View File

@ -60,7 +60,9 @@ Other changes:
actual include. (#8095, #7967, #3190) [@sev-] actual include. (#8095, #7967, #3190) [@sev-]
- Backends: SDL2, SDL3: SDL_EVENT_MOUSE_WHEEL event doesn't require dividing - Backends: SDL2, SDL3: SDL_EVENT_MOUSE_WHEEL event doesn't require dividing
by 100.0f on Emscripten target. (#4019, #6096, #1463) by 100.0f on Emscripten target. (#4019, #6096, #1463)
- Examples: Added SDL3+Vulkan example. (#8084, #8085) - Examples: SDL3+Vulkan: Added example. (#8084, #8085)
- Examples: Android+OpenGL: Using ALooper_pollOnce() instead of ALooper_pollAll()
which has been deprecated. (#8013) [@feather179]
----------------------------------------------------------------------- -----------------------------------------------------------------------
VERSION 1.91.4 (Released 2024-10-18) VERSION 1.91.4 (Released 2024-10-18)

View File

@ -68,7 +68,7 @@ void android_main(struct android_app* app)
struct android_poll_source* out_data; struct android_poll_source* out_data;
// Poll all events. If the app is not visible, this loop blocks until g_Initialized == true. // Poll all events. If the app is not visible, this loop blocks until g_Initialized == true.
while (ALooper_pollAll(g_Initialized ? 0 : -1, nullptr, &out_events, (void**)&out_data) >= 0) while (ALooper_pollOnce(g_Initialized ? 0 : -1, nullptr, &out_events, (void**)&out_data) >= 0)
{ {
// Process one event // Process one event
if (out_data != nullptr) if (out_data != nullptr)