public final class MouseButtonEvent extends MouseEvent
|Modifier and Type||Field and Description|
The mouse button that was pressed or released.
|Constructor and Description|
Constructs a new mouse button event.
|Modifier and Type||Method and Description|
Attempts to cast this event to a
asJoystickButtonEvent, asJoystickEvent, asJoystickMoveEvent, asKeyEvent, asMouseWheelEvent, asSizeEvent, asTextEvent
public final Mouse.Button button
public MouseButtonEvent(int type, int x, int y, int button)
type- the type of the event. This must be a valid ordinal in the
x- the X coordinate of the mouse cursor relative to the window.
y- the Y coordinate of the mouse cursor relative to the window.
button- the button that was pressed. This must be a valid ordinal in the
public MouseButtonEvent asMouseButtonEvent()