mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-10-30 03:37:52 +00:00
ndk_motion.cpp: Use ALooper_pollOnce instead of ALooper_pollAll
ALooper_pollAll is deprecated in Android NDK 27.
This commit is contained in:
parent
e6636469d8
commit
953919a62c
1 changed files with 1 additions and 1 deletions
|
@ -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<Vec3<float>> new_accel{}, new_rot{};
|
||||
while (ASensorEventQueue_getEvents(event_queue, &event, 1) > 0) {
|
||||
|
|
Loading…
Reference in a new issue