Support detecting whether device is a tablet and use that to determine whether to enforce portrait orientation

This commit is contained in:
drdev
2015-05-25 02:16:53 +00:00
parent ae47fb74a7
commit 63d024ed37
3 changed files with 27 additions and 6 deletions

View File

@@ -58,5 +58,10 @@ public class Main {
public void exit() {
Gdx.app.exit(); //can just use Gdx.app.exit for desktop
}
@Override
public boolean isTablet() {
return true; //treat desktop the same as a tablet
}
}
}