Package mindustry.editor
Class MapObjectivesCanvas.ObjectiveTilemap.ObjectiveTile.Mover
java.lang.Object
arc.scene.event.InputListener
mindustry.editor.MapObjectivesCanvas.ObjectiveTilemap.ObjectiveTile.Mover
- All Implemented Interfaces:
EventListener
- Enclosing class:
- MapObjectivesCanvas.ObjectiveTilemap.ObjectiveTile
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
touchDown
(InputEvent event, float x, float y, int pointer, KeyCode button) Called when a mouse button or a finger touch goes down on the element.void
touchDragged
(InputEvent event, float x, float y, int pointer) Called when a mouse button or a finger touch is moved anywhere, but only if touchDown previously returned true for the mouse button or touch.void
touchUp
(InputEvent event, float x, float y, int pointer, KeyCode button) Called when a mouse button or a finger touch goes up anywhere, but only if touchDown previously returned true for the mouse button or touch.Methods inherited from class arc.scene.event.InputListener
enter, exit, handle, keyDown, keyTyped, keyUp, mouseMoved, scrolled
-
Field Details
-
prevX
public int prevX -
prevY
public int prevY -
lastX
public float lastX -
lastY
public float lastY
-
-
Constructor Details
-
Mover
public Mover()
-
-
Method Details
-
touchDown
Description copied from class:InputListener
Called when a mouse button or a finger touch goes down on the element. If true is returned, this listener will receive all touchDragged and touchUp events, even those not over this element, until touchUp is received. Also when true is returned, the event ishandled
.- Overrides:
touchDown
in classInputListener
- See Also:
-
touchDragged
Description copied from class:InputListener
Called when a mouse button or a finger touch is moved anywhere, but only if touchDown previously returned true for the mouse button or touch. The touchDragged event is alwayshandled
.- Overrides:
touchDragged
in classInputListener
- See Also:
-
touchUp
Description copied from class:InputListener
Called when a mouse button or a finger touch goes up anywhere, but only if touchDown previously returned true for the mouse button or touch. The touchUp event is alwayshandled
.- Overrides:
touchUp
in classInputListener
- See Also:
-