Example usage for com.badlogic.gdx InputProcessor touchDown

List of usage examples for com.badlogic.gdx InputProcessor touchDown

Introduction

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

Prototype

public boolean touchDown(int screenX, int screenY, int pointer, int button);

Source Link

Document

Called when the screen was touched or a mouse button was pressed.

Usage

From source file:com.kamigaku.libgdx.extension.InputMultiplexerToggle.java

@Override
public boolean touchDown(int screenX, int screenY, int pointer, int button) {
    for (InputProcessor ip : _processors.keySet())
        if (_processors.get(ip) && ip.touchDown(screenX, screenY, pointer, button))
            return true;
    return false;
}