From e08e1dff613cf5144e78c0f823a43b071a4806e8 Mon Sep 17 00:00:00 2001 From: Reg Tiangha Date: Sat, 7 Sep 2024 14:18:49 -0600 Subject: [PATCH] ndk_motion.cpp: Use ALooper_pollOnce instead of ALooper_pollAll ALooper_pollAll is deprecated in Android NDK 27. --- src/android/app/src/main/jni/ndk_motion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/app/src/main/jni/ndk_motion.cpp b/src/android/app/src/main/jni/ndk_motion.cpp index 9f4d9b9d2..abe947197 100644 --- a/src/android/app/src/main/jni/ndk_motion.cpp +++ b/src/android/app/src/main/jni/ndk_motion.cpp @@ -82,7 +82,7 @@ class NDKMotion final : public Input::MotionDevice { } void Update() const { - ALooper_pollAll(0, nullptr, nullptr, nullptr); + ALooper_pollOnce(0, nullptr, nullptr, nullptr); ASensorEvent event{}; std::optional> new_accel{}, new_rot{}; while (ASensorEventQueue_getEvents(event_queue, &event, 1) > 0) {