List of usage examples for com.badlogic.gdx Input Input
Input
From source file:com.longarmx.color.Game.java
License:Apache License
/** * The main initialization./* w w w.ja v a2 s. c o m*/ */ @Override public void create() { // Sets the input processor to be the Input class. Gdx.input.setInputProcessor(new Input()); batch = new SpriteBatch(); background = Util.loadTexture("res/background.png"); overlay = Util.loadTexture("res/overlay.png"); startMusic(); ui = new GuiGame(); title = new GuiTitle(); options = new GuiOptions(); levelSelect = new GuiLevelSelect(); highscore = new GuiHighscore(); reset(); // Used to get the current memory used by the JRE. Useful to detect memory leaks. Runtime runtime = Runtime.getRuntime(); System.out.println("Total RAM used: " + ((runtime.totalMemory() - runtime.freeMemory()) / (1024)) + "KB"); }