diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-06-26 09:46:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-26 09:46:10 +0200 |
commit | 7d06d50e65193e7d40d03544d84c51ea20c4ddde (patch) | |
tree | a1921caec07f6219c01a650a8e0cf254d67d87e4 /platform/android | |
parent | fad6b29a59525cddb3c0d9e284671d86e18a4667 (diff) | |
parent | 6d37253be5657844171413c2fbb164a1a9e7ee9a (diff) |
Merge pull request #5395 from vnen/android-sensors
Fix Android sensors polling rate on resume
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/java/src/org/godotengine/godot/Godot.java | 4 |
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(); |