Example usage for com.badlogic.gdx.scenes.scene2d EventListener handle

List of usage examples for com.badlogic.gdx.scenes.scene2d EventListener handle

Introduction

In this page you can find the example usage for com.badlogic.gdx.scenes.scene2d EventListener handle.

Prototype

public boolean handle(Event event);

Source Link

Document

Try to handle the given event, if it is applicable.

Usage

From source file:com.stercore.code.net.dermetfan.utils.libgdx.scene2d.EventMultiplexer.java

License:Apache License

/** @return if one of the {@link #receivers} returned true in {@link EventListener#handle(com.badlogic.gdx.scenes.scene2d.Event) handle(Event)} */
@Override/*from  w w  w. j  a  v  a  2  s  . c o  m*/
public boolean handle(Event event) {
    boolean handled = false;
    for (EventListener listener : receivers)
        handled |= listener.handle(event);
    return handled;
}