Package playn.core
Class Touch.Event
java.lang.Object
playn.core.Event
playn.core.Event.Input
playn.core.Event.XY
playn.core.Touch.Event
- All Implemented Interfaces:
XY
- Enclosing class:
Touch
Contains information on a touch event.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumerates the different kinds of touch event.Nested classes/interfaces inherited from class playn.core.Event
Event.Input, Event.XY -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe id of the touch associated with this event.final Touch.Event.KindWhether this event represents a start, move, etc.final floatThe pressure of the touch.final floatThe size of the touch.Fields inherited from class playn.core.Event.Input
flags, timeFields inherited from class playn.core.Event
F_PREVENT_DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionEvent(int flags, double time, float x, float y, Touch.Event.Kind kind, int id) Event(int flags, double time, float x, float y, Touch.Event.Kind kind, int id, float pressure, float size) -
Method Summary
Methods inherited from class playn.core.Event.Input
clearFlag, isAltDown, isCtrlDown, isMetaDown, isSet, isShiftDown, modifierFlags, setFlag, toString, updateFlag
-
Field Details
-
kind
Whether this event represents a start, move, etc. -
id
public final int idThe id of the touch associated with this event. -
pressure
public final float pressureThe pressure of the touch. -
size
public final float sizeThe size of the touch.
-
-
Constructor Details
-
Event
-
Event
public Event(int flags, double time, float x, float y, Touch.Event.Kind kind, int id, float pressure, float size)
-