Package playn.core

Class Mouse.ButtonEvent

All Implemented Interfaces:
XY
Enclosing class:
Mouse

public static class Mouse.ButtonEvent extends Mouse.Event
The event dispatched for mouse input.
  • Field Details

    • button

      public final Mouse.ButtonEvent.Id button
      The id of the button associated with this event.
    • down

      public boolean down
      True if the button was just pressed, false if it was just released.
  • Constructor Details

    • ButtonEvent

      public ButtonEvent(int flags, double time, float x, float y, Mouse.ButtonEvent.Id button, boolean down)