Example usage for com.badlogic.gdx InputProcessor touchDragged

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

Introduction

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

Prototype

public boolean touchDragged(int screenX, int screenY, int pointer);

Source Link

Document

Called when a finger or the mouse was dragged.

Usage

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

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