Package com.prineside.tdi2.utils
Class InputListenerExtended
java.lang.Object
com.prineside.tdi2.scene2d.InputListener
com.prineside.tdi2.utils.InputListenerExtended
- All Implemented Interfaces:
EventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getMode
(InputEvent.Type eventType) boolean
Try to handle the given event, if it is anInputEvent
.setMode
(InputEvent.Type eventType, int mode) Methods inherited from class com.prineside.tdi2.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
-
getMode
-
handle
Description copied from class:InputListener
Try to handle the given event, if it is anInputEvent
.If the input event is of type
InputEvent.Type.touchDown
andInputEvent.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 focus
so it will receive all touch dragged events until the next touch up event.- Specified by:
handle
in interfaceEventListener
- Overrides:
handle
in classInputListener
- Returns:
- true if the event should be considered
handled
by scene2d.
-