v0.8.0: added basic key action and key mapping support

This commit is contained in:
Evan Debenham
2019-10-28 21:06:02 -04:00
parent 4f430015c3
commit df3a0a010b
8 changed files with 136 additions and 35 deletions

View File

@@ -99,10 +99,7 @@ public class Game implements ApplicationListener {
Blending.useDefault();
inputHandler = new InputHandler();
Gdx.input.setInputProcessor(inputHandler);
Gdx.input.setCatchKey(KeyEvent.BACK, true);
Gdx.input.setCatchKey(KeyEvent.MENU, true);
inputHandler = new InputHandler( Gdx.input );
//refreshes texture and vertex data stored on the gpu
TextureCache.reload();