public interface TouchInterface
| Modifier and Type | Method and Description |
|---|---|
void |
onClick(int x,
int y,
int button)
Invoked when the pointer (mouse or touch) is pressed (once).
|
void |
onDrag(int x,
int y)
Invoked when the pointer (mouse or touch) is moved and down.
|
void |
onRelease(int x,
int y,
int button)
Invoked when the pointer (mouse or touch) is released.
|
void |
onScroll(int amount)
Invoked when the mouse scroll (wheel) has been moved.
|
void onClick(int x,
int y,
int button)
Input.Buttons.LEFT.x - the screen X coordinate (origin is the lower left corner)y - the screen Y coordinate (origin is the lower left corner)button - Input.Buttons.LEFT or
Input.Buttons.RIGHT button clickedvoid onDrag(int x,
int y)
x - the screen X coordinate (origin is the lower left corner)y - the screen Y coordinate (origin is the lower left corner)void onRelease(int x,
int y,
int button)
Input.Buttons.LEFT.x - the screen X coordinate (origin is the lower left corner)y - the screen Y coordinate (origin is the lower left corner)button - Input.Buttons.LEFT or
Input.Buttons.RIGHT button clickedvoid onScroll(int amount)
amount - the scroll amountCopyright © 2014-2016 gdx2d - https://github.com/hevs-isi/gdx2d