Package playn.core
Class Mouse.ButtonEvent
java.lang.Object
playn.core.Event
playn.core.Event.Input
playn.core.Event.XY
playn.core.Mouse.Event
playn.core.Mouse.ButtonEvent
- All Implemented Interfaces:
XY
- Enclosing class:
Mouse
The event dispatched for mouse input.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enumerates the supported mouse buttons.Nested classes/interfaces inherited from class playn.core.Event
Event.Input, Event.XY
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Mouse.ButtonEvent.Id
The id of the button associated with this event.boolean
True if the button was just pressed, false if it was just released.Fields inherited from class playn.core.Event.Input
flags, time
Fields inherited from class playn.core.Event
F_PREVENT_DEFAULT
-
Constructor Summary
ConstructorsConstructorDescriptionButtonEvent
(int flags, double time, float x, float y, Mouse.ButtonEvent.Id button, boolean down) -
Method Summary
Methods inherited from class playn.core.Event.Input
clearFlag, isAltDown, isCtrlDown, isMetaDown, isSet, isShiftDown, modifierFlags, setFlag, toString, updateFlag
-
Field Details
-
button
The id of the button associated with this event. -
down
public boolean downTrue 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)
-