v0.9.4: added support for input multiplexing
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user