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

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

Introduction

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

Prototype

public boolean touchDown(float x, float y, int pointer, int button) 

Source Link

Usage

From source file:de.bitbrain.craft.events.GestureManager.java

License:Open Source License

@Override
public boolean touchDown(int screenX, int screenY, int pointer, int button) {
    boolean value = false;
    for (GestureDetector detector : detectors) {
        if (detector.touchDown(screenX, screenY, pointer, button)) {
            value = true;//from  w  ww .j  a va2 s. co  m
        }
    }
    return value;
}