Bandidos
|
Classes | |
enum | TouchType |
Public Member Functions | |
TouchEvent (Vector2 location, int pointer, TouchType touchType, String type, int touchLayer) | |
int | getTouchX () |
int | getTouchY () |
int | getPointer () |
TouchType | getTouchType () |
int | getTouchLayer () |
void | clean () |
Public Member Functions inherited from com.mygdx.game.engine.events.Event | |
Event (String type) | |
String | getType () |
EventDispatcher | getDispatcher () |
void | setDispatcher (EventDispatcher dispatcherValue) |
void | clean () |
This class or an extending class is an event which is dispatched for touch events.
com.mygdx.game.touchinput.TouchEvent.TouchEvent | ( | Vector2 | location, |
int | pointer, | ||
TouchType | touchType, | ||
String | type, | ||
int | touchLayer | ||
) |
The touch event with all info
location | the touch is on the screen |
pointer | to the specific touch. Can be seen as an Id for the touch |
touchType | to identify what kind of touch it is. |
type | of event which the event represents. |
void com.mygdx.game.touchinput.TouchEvent.clean | ( | ) |
int com.mygdx.game.touchinput.TouchEvent.getPointer | ( | ) |
The Pointer which represents the specific touch. Can be seen as an Id for the touch
int com.mygdx.game.touchinput.TouchEvent.getTouchLayer | ( | ) |
Returns the layer in which the touch occured.
TouchType com.mygdx.game.touchinput.TouchEvent.getTouchType | ( | ) |
The type of the touch represents to what happened in the touch.
int com.mygdx.game.touchinput.TouchEvent.getTouchX | ( | ) |
Gets the X position of the touch
int com.mygdx.game.touchinput.TouchEvent.getTouchY | ( | ) |
Gets the Y position of the touch