Back to project page TileArena.
The source code is released under:
MIT License
If you think the Android project TileArena listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package game.tile.arena.util.input; //from w ww . j ava 2 s. c o m import com.badlogic.gdx.Gdx; import com.badlogic.gdx.InputMultiplexer; import com.badlogic.gdx.InputProcessor; public class InputManager { private static InputManager inputManager; public static InputManager getInstance() { if (inputManager == null) { inputManager = new InputManager(); return inputManager; } return null; } private InputManager() { inputs = new InputMultiplexer(); Gdx.input.setInputProcessor(inputs); } private InputMultiplexer inputs; public void addInputProcessor(InputProcessor in) { inputs.addProcessor(in); } }