v2.3.1: disabled libGDX immersive mode, interferes with game's settings
This commit is contained in:
@@ -110,8 +110,6 @@ public class AndroidLauncher extends AndroidApplication {
|
|||||||
ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE :
|
ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE :
|
||||||
ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT );
|
ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT );
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO libGDX offers its own immersive mode functionality, do we want to use it?
|
|
||||||
|
|
||||||
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
|
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
|
||||||
config.depth = 0;
|
config.depth = 0;
|
||||||
@@ -121,6 +119,9 @@ public class AndroidLauncher extends AndroidApplication {
|
|||||||
config.g = 6;
|
config.g = 6;
|
||||||
config.b = 5;
|
config.b = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//we manage this ourselves
|
||||||
|
config.useImmersiveMode = false;
|
||||||
|
|
||||||
config.useCompass = false;
|
config.useCompass = false;
|
||||||
config.useAccelerometer = false;
|
config.useAccelerometer = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user