Example usage for com.badlogic.gdx Input Input

List of usage examples for com.badlogic.gdx Input Input

Introduction

In this page you can find the example usage for com.badlogic.gdx Input Input.

Prototype

Input

Source Link

Usage

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");
}