| Constructor and Description |
|---|
JoystickButton(Joystick j,
int buttonID)
Creates a JoystickButton that corresponds to a physical button on j.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
get()
Gets the current state of the button.
|
boolean |
getPrevious()
Gets the state the button was in last time it was checked.
|
public JoystickButton(Joystick j, int buttonID)
j - The Joystick this Button is on.buttonID - The ID of this Button.