Example usage for com.badlogic.gdx InputProcessor scrolled

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

Introduction

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

Prototype

public boolean scrolled(int amount);

Source Link

Document

Called when the mouse wheel was scrolled.

Usage

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

@Override
public boolean scrolled(int amount) {
    for (InputProcessor ip : _processors.keySet())
        if (_processors.get(ip) && ip.scrolled(amount))
            return true;
    return false;
}