Example usage for com.badlogic.gdx.input GestureDetector setTapSquareSize

List of usage examples for com.badlogic.gdx.input GestureDetector setTapSquareSize

Introduction

In this page you can find the example usage for com.badlogic.gdx.input GestureDetector setTapSquareSize.

Prototype

public void setTapSquareSize(float halfTapSquareSize) 

Source Link

Usage

From source file:com.strategames.catchdastars.screens.editor.LevelEditorScreen.java

License:Open Source License

@Override
protected void setupUI(Stage stage) {
    this.snapToGrid = LevelEditorPreferences.snapToGridEnabled();
    GestureDetector d = new GestureDetector(this);
    d.setTapSquareSize(60f);
    getMultiplexer().addProcessor(d);//  w  w  w  .j av a 2 s  . c  om
}