v0.9.4: added support for input multiplexing

This commit is contained in:
Evan Debenham
2021-07-08 12:19:15 -04:00
parent a492c565d0
commit bcdbf8ef43
2 changed files with 52 additions and 15 deletions

View File

@@ -78,8 +78,8 @@ public class Game implements ApplicationListener {
public static float elapsed = 0f;
public static float timeTotal = 0f;
public static long realTime = 0;
protected static InputHandler inputHandler;
public static InputHandler inputHandler;
public static PlatformSupport platform;
@@ -95,9 +95,9 @@ public class Game implements ApplicationListener {
density = Gdx.graphics.getDensity();
dispHeight = Gdx.graphics.getDisplayMode().height;
dispWidth = Gdx.graphics.getDisplayMode().width;
inputHandler = new InputHandler( Gdx.input );
//refreshes texture and vertex data stored on the gpu
versionContextRef = Gdx.graphics.getGLVersion();
Blending.useDefault();
@@ -123,7 +123,7 @@ public class Game implements ApplicationListener {
}
if (height != Game.height || width != Game.width) {
Game.width = width;
Game.height = height;