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; /*from w ww . j a v a2s . co m*/ import com.badlogic.gdx.Input; public class Preferences { private static Preferences currentPrefs; public static Preferences get() { if (currentPrefs == null) currentPrefs = new Preferences(); return currentPrefs; } public boolean TOUCH_CONTROLS = true; public int UP = Input.Keys.W; public int DOWN = Input.Keys.S; public int LEFT = Input.Keys.A; public int RIGHT = Input.Keys.D; public int WEAPON_SWITCH = Input.Keys.H; public void setTouch(boolean newControls) { TOUCH_CONTROLS = newControls; } }