v0.8.0: added window size/fullscreen support to desktop, refactored landscape code
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user