Example usage for com.badlogic.gdx InputMultiplexer clear

List of usage examples for com.badlogic.gdx InputMultiplexer clear

Introduction

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

Prototype

public void clear() 

Source Link

Usage

From source file:presentation.abstraction.AStage.java

License:Open Source License

/**
 * Initialized a stage.//www  . j a  va 2 s  .co  m
 */
protected void initStage() {
    stage = new Stage();
    InputMultiplexer input = InputGame.getInputMultiplexer();
    input.clear();
    input.addProcessor(stage);
    this.resize(WIDTH, HEIGHT);
    // Panel.
    Table root = new Table();
    root.setFillParent(true);
    this.stage.addActor(root);
    // Put image of background of this screen.
    Drawable image = new TextureRegionDrawable(ResourcesMenus.mainMenuBackground);
    root.setBackground(image);
}