public final class JoystickButtonEvent extends JoystickEvent
|Modifier and Type||Field and Description|
The index of the button that was pressed or released.
|Constructor and Description|
Constructs a new joystick button event.
|Modifier and Type||Method and Description|
Attempts to cast this event to a
asJoystickMoveEvent, asKeyEvent, asMouseButtonEvent, asMouseEvent, asMouseWheelEvent, asSizeEvent, asTextEvent
public final int button
public JoystickButtonEvent(int type, int joystickId, int button)
type- the type of the event. This must be a valid ordinal in the
joystickId- the joystick ID.
button- the index of the button that was pressed.
public JoystickButtonEvent asJoystickButtonEvent()