summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2016-06-24 21:00:04 -0300
committerGeorge Marques <george@gmarqu.es>2016-06-24 21:00:04 -0300
commit6d37253be5657844171413c2fbb164a1a9e7ee9a (patch)
tree5de32d32128f2ddce4297f36874f7d692eb8657c /platform/android
parent22c9a44174a113a5f41c21c3d8fa22413834a21d (diff)
Fix Android sensors polling rate on resume
Fix #5306
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/java/src/org/godotengine/godot/Godot.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/java/src/org/godotengine/godot/Godot.java b/platform/android/java/src/org/godotengine/godot/Godot.java
index cdf17e3161..4c0f4878f5 100644
--- a/platform/android/java/src/org/godotengine/godot/Godot.java
+++ b/platform/android/java/src/org/godotengine/godot/Godot.java
@@ -602,8 +602,8 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC
}
mView.onResume();
- mSensorManager.registerListener(this, mAccelerometer, SensorManager.SENSOR_DELAY_NORMAL);
- mSensorManager.registerListener(this, mMagnetometer, SensorManager.SENSOR_DELAY_NORMAL);
+ mSensorManager.registerListener(this, mAccelerometer, SensorManager.SENSOR_DELAY_GAME);
+ mSensorManager.registerListener(this, mMagnetometer, SensorManager.SENSOR_DELAY_GAME);
GodotLib.focusin();
if(use_immersive && Build.VERSION.SDK_INT >= 19.0){ // check if the application runs on an android 4.4+
Window window = getWindow();