public class JoyButtonEvent extends InputEvent
consumed, time| Constructor and Description | 
|---|
| JoyButtonEvent(JoystickButton button,
              boolean pressed) | 
| Modifier and Type | Method and Description | 
|---|---|
| JoystickButton | getButton()Returns the JoystickButton that triggered this event. | 
| int | getButtonIndex()The button index. | 
| int | getJoyIndex()The joystick index. | 
| boolean | isPressed()Returns true if the event was a button press,
 returns false if the event was a button release. | 
getTime, isConsumed, setConsumed, setTimepublic JoyButtonEvent(JoystickButton button, boolean pressed)
public JoystickButton getButton()
JoystickAxis.assignAxis(java.lang.String, java.lang.String)public int getButtonIndex()
Joystick.assignButton(java.lang.String, int)public int getJoyIndex()
InputManager.getJoysticks()public boolean isPressed()