tap square. Any touch (not just the first) will trigger this listener. While
pressed, other touch downs are ignored.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private boolean | |
| private float | |
| private float | |
| private float | |
| private float | |
| private float | |
| private float | |
| private int | |
| private float | |
| private float | |
| private float | |
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public int | |
| public float | getDeltaX()
Returns the amount on the x axis that the touch has been dragged since the last drag event. |
| public float | getDeltaY()
Returns the amount on the y axis that the touch has been dragged since the last drag event. |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean | touchDown(InputEvent event, float x, float y, int pointer, int button)
Overrides com. Called when a mouse button or a finger touch goes down on the actor. |
| public void | touchDragged(InputEvent event, float x, float y, int pointer)
Overrides com. 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. |
| public void | touchUp(InputEvent event, float x, float y, int pointer, int button)
Overrides com. 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. |
| button | back to summary |
|---|---|
| private int button | |
| dragging | back to summary |
|---|---|
| private boolean dragging | |
| dragLastX | back to summary |
|---|---|
| private float dragLastX | |
| dragLastY | back to summary |
|---|---|
| private float dragLastY | |
| dragStartX | back to summary |
|---|---|
| private float dragStartX | |
| dragStartY | back to summary |
|---|---|
| private float dragStartY | |
| dragX | back to summary |
|---|---|
| private float dragX | |
| dragY | back to summary |
|---|---|
| private float dragY | |
| pressedPointer | back to summary |
|---|---|
| private int pressedPointer | |
| stageTouchDownX | back to summary |
|---|---|
| private float stageTouchDownX | |
| stageTouchDownY | back to summary |
|---|---|
| private float stageTouchDownY | |
| tapSquareSize | back to summary |
|---|---|
| private float tapSquareSize | |
| touchDownX | back to summary |
|---|---|
| private float touchDownX | |
| touchDownY | back to summary |
|---|---|
| private float touchDownY | |
| DragListener | back to summary |
|---|---|
| public DragListener() | |
| cancel | back to summary |
|---|---|
| public void cancel() | |
| drag | back to summary |
|---|---|
| public void drag(InputEvent event, float x, float y, int pointer) | |
| dragStart | back to summary |
|---|---|
| public void dragStart(InputEvent event, float x, float y, int pointer) | |
| dragStop | back to summary |
|---|---|
| public void dragStop(InputEvent event, float x, float y, int pointer) | |
| getButton | back to summary |
|---|---|
| public int getButton() | |
| getDeltaX | back to summary |
|---|---|
| public float getDeltaX() Returns the amount on the x axis that the touch has been dragged since the last drag event. | |
| getDeltaY | back to summary |
|---|---|
| public float getDeltaY() Returns the amount on the y axis that the touch has been dragged since the last drag event. | |
| getDragDistance | back to summary |
|---|---|
| public float getDragDistance() The distance from drag start to the current drag position. | |
| getDragStartX | back to summary |
|---|---|
| public float getDragStartX() | |
| getDragStartY | back to summary |
|---|---|
| public float getDragStartY() | |
| getDragX | back to summary |
|---|---|
| public float getDragX() | |
| getDragY | back to summary |
|---|---|
| public float getDragY() | |
| getStageTouchDownX | back to summary |
|---|---|
| public float getStageTouchDownX() | |
| getStageTouchDownY | back to summary |
|---|---|
| public float getStageTouchDownY() | |
| getTapSquareSize | back to summary |
|---|---|
| public float getTapSquareSize() | |
| getTouchDownX | back to summary |
|---|---|
| public float getTouchDownX() | |
| getTouchDownY | back to summary |
|---|---|
| public float getTouchDownY() | |
| isDragging | back to summary |
|---|---|
| public boolean isDragging() Returns true if a touch has been dragged outside the tap square. | |
| setButton | back to summary |
|---|---|
| public void setButton(int button) Sets the button to listen for, all other buttons are ignored. Default is | |
| setDragStartX | back to summary |
|---|---|
| public void setDragStartX(float dragStartX) | |
| setDragStartY | back to summary |
|---|---|
| public void setDragStartY(float dragStartY) | |
| setTapSquareSize | back to summary |
|---|---|
| public void setTapSquareSize(float halfTapSquareSize) | |
| touchDown | back to summary |
|---|---|
| public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) Overrides com. Doc from com. Called when a mouse button or a finger touch goes down on the actor. If true is returned, this listener will have
| |
| touchDragged | back to summary |
|---|---|
| public void touchDragged(InputEvent event, float x, float y, int pointer) Overrides com. Doc from com. 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 always | |
| touchUp | back to summary |
|---|---|
| public void touchUp(InputEvent event, float x, float y, int pointer, int button) Overrides com. Doc from com. 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 always | |