Package com.prineside.tdi2.utils
Class InputListenerExtended
java.lang.Object
com.badlogic.gdx.scenes.scene2d.InputListener
com.prineside.tdi2.utils.InputListenerExtended
- All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.EventListener
public class InputListenerExtended
extends com.badlogic.gdx.scenes.scene2d.InputListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.badlogic.gdx.scenes.scene2d.InputListener
enter, exit, keyDown, keyTyped, keyUp, mouseMoved, scrolled, touchDown, touchDragged, touchUp
-
Field Details
-
MODE_AUTO
public static final int MODE_AUTO- See Also:
-
MODE_ALWAYS_TRUE
public static final int MODE_ALWAYS_TRUE- See Also:
-
MODE_ALWAYS_FALSE
public static final int MODE_ALWAYS_FALSE- See Also:
-
-
Constructor Details
-
InputListenerExtended
public InputListenerExtended()
-
-
Method Details
-
setMode
public InputListenerExtended setMode(com.badlogic.gdx.scenes.scene2d.InputEvent.Type eventType, int mode) -
getMode
public int getMode(com.badlogic.gdx.scenes.scene2d.InputEvent.Type eventType) -
handle
public boolean handle(com.badlogic.gdx.scenes.scene2d.Event e) Description copied from class:com.badlogic.gdx.scenes.scene2d.InputListenerTry to handle the given event, if it is anInputEvent.If the input event is of type
InputEvent.Type.touchDownandInputEvent.getTouchFocus()is true andInputListener.touchDown(InputEvent, float, float, int, int)returns true (indicating the event was handled) then this listener is added to the stage'stouch focusso it will receive all touch dragged events until the next touch up event.- Specified by:
handlein interfacecom.badlogic.gdx.scenes.scene2d.EventListener- Overrides:
handlein classcom.badlogic.gdx.scenes.scene2d.InputListener- Returns:
- true if the event should be considered
handledby scene2d.
-