v3.2.2: Increased minimum Android to 5.0 from 4.0, and Java from 8 to 11
This commit is contained in:
@@ -30,7 +30,6 @@ import com.badlogic.gdx.controllers.ControllerMapping;
|
||||
import com.badlogic.gdx.controllers.Controllers;
|
||||
import com.watabou.noosa.Game;
|
||||
import com.watabou.noosa.ui.Cursor;
|
||||
import com.watabou.utils.DeviceCompat;
|
||||
import com.watabou.utils.PointF;
|
||||
|
||||
public class ControllerHandler implements ControllerListener {
|
||||
@@ -65,9 +64,7 @@ public class ControllerHandler implements ControllerListener {
|
||||
private static boolean failedInit = false;
|
||||
|
||||
public static boolean controllersSupported() {
|
||||
if (DeviceCompat.isAndroid() && Gdx.app.getVersion() < 16) {
|
||||
return false;
|
||||
} else if (failedInit) {
|
||||
if (failedInit) {
|
||||
return false;
|
||||
} else if (initialized){
|
||||
return true;
|
||||
|
||||
@@ -32,14 +32,15 @@ public class DeviceCompat {
|
||||
public static boolean supportsFullScreen(){
|
||||
switch (Gdx.app.getType()){
|
||||
case Android:
|
||||
//Android 4.4+ supports hiding UI via immersive mode
|
||||
return Gdx.app.getVersion() >= 19;
|
||||
//TODO perhaps have this vary based on status bar type?
|
||||
return true;
|
||||
case iOS:
|
||||
//iOS supports hiding UI via drawing into the gesture safe area
|
||||
return Gdx.graphics.getSafeInsetBottom() != 0;
|
||||
default:
|
||||
//TODO implement functionality for other platforms here
|
||||
case Desktop:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user