-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android: Inform that sensors must be enabled in ProjectSettings #103132
Conversation
syntaxerror247
commented
Feb 21, 2025
•
edited
Loading
edited
- Resolves get_accelerometer, get_gravity(), get_magnetometer(), and get_gyroscope() don't work on Godot v4.4.dev4.official - Android #99643
- Resolves get_gravity() not working anymore in godot 4.4 #103115
@bruvzg Do these settings work for iOS? I checked the code, and it looks like they're only implemented on Android. |
These should not have any effect on iOS, but seems like Lines 614 to 660 in 394508d
|
a855a69
to
93babab
Compare
The warning will now only print for Android. @bruvzg We should also implement this for iOS if possible, as it would reduce battery usage. |
Should be possible, but not sure if there will be any effect on the battery. Sensors are polled here, but it probably requires calling godot/platform/ios/godot_view.mm Line 398 in 394508d
Edit: it should be possible to config individual sensors, but code should be changed a bit. |
Thanks! |