v0.8.0: added window size/fullscreen support to desktop, refactored landscape code

This commit is contained in:
Evan Debenham
2019-10-29 13:04:14 -04:00
parent f038bde5cc
commit b88036da0b
27 changed files with 182 additions and 85 deletions

View File

@@ -21,6 +21,7 @@
package com.watabou.utils;
import com.badlogic.gdx.Application;
import com.badlogic.gdx.Gdx;
import com.watabou.noosa.Game;
@@ -34,10 +35,14 @@ public class DeviceCompat {
return Gdx.app.getVersion() >= 19;
default:
//TODO implement functionality for other platforms here
return false;
return true;
}
}
public static boolean isDesktop(){
return Gdx.app.getType() == Application.ApplicationType.Desktop;
}
public static boolean legacyDevice(){
switch (Gdx.app.getType()){
case Android: