This commit is contained in:
Anthony Calosa
2019-09-03 22:13:35 +08:00
parent 38b07d6185
commit efa606783c
6 changed files with 558 additions and 197 deletions

View File

@@ -79,7 +79,7 @@ public class Forge implements ApplicationListener {
to prevent rendering issue when you try to restart
the app again (seems it doesnt dispose correctly...?!?)
*/
Gdx.input.setCatchBackKey(true);
Gdx.input.setCatchKey(Keys.BACK, true);
destroyThis = true; //Prevent back()
ForgePreferences prefs = new ForgePreferences();
@@ -126,8 +126,7 @@ public class Forge implements ApplicationListener {
SoundSystem.instance.setBackgroundMusic(MusicPlaylist.MENUS); //start background music
destroyThis = false; //Allow back()
Gdx.input.setCatchBackKey(true);
Gdx.input.setCatchMenuKey(true);
Gdx.input.setCatchKey(Keys.MENU, true);
openScreen(HomeScreen.instance);
splashScreen = null;