Package playn.core

Class Touch.Event

All Implemented Interfaces:
XY
Enclosing class:
Touch

public static class Touch.Event extends Event.XY
Contains information on a touch event.
  • Field Details

    • kind

      public final Touch.Event.Kind kind
      Whether this event represents a start, move, etc.
    • id

      public final int id
      The id of the touch associated with this event.
    • pressure

      public final float pressure
      The pressure of the touch.
    • size

      public final float size
      The size of the touch.
  • Constructor Details

    • Event

      public Event(int flags, double time, float x, float y, Touch.Event.Kind kind, int id)
    • Event

      public Event(int flags, double time, float x, float y, Touch.Event.Kind kind, int id, float pressure, float size)