public interface JoystickButton
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BUTTON_0 |
static java.lang.String |
BUTTON_1 |
static java.lang.String |
BUTTON_10 |
static java.lang.String |
BUTTON_11 |
static java.lang.String |
BUTTON_2 |
static java.lang.String |
BUTTON_3 |
static java.lang.String |
BUTTON_4 |
static java.lang.String |
BUTTON_5 |
static java.lang.String |
BUTTON_6 |
static java.lang.String |
BUTTON_7 |
static java.lang.String |
BUTTON_8 |
static java.lang.String |
BUTTON_9 |
Modifier and Type | Method and Description |
---|---|
void |
assignButton(java.lang.String mappingName)
Assign the mapping name to receive events from the given button index
on the joystick.
|
int |
getButtonId()
Returns the unique buttonId of this joystick axis within a given
InputManager context.
|
Joystick |
getJoystick()
Returns the joystick to which this axis object belongs.
|
java.lang.String |
getLogicalId()
Returns the logical identifier of this joystick axis.
|
java.lang.String |
getName()
Returns the name of this joystick.
|
static final java.lang.String BUTTON_0
static final java.lang.String BUTTON_1
static final java.lang.String BUTTON_2
static final java.lang.String BUTTON_3
static final java.lang.String BUTTON_4
static final java.lang.String BUTTON_5
static final java.lang.String BUTTON_6
static final java.lang.String BUTTON_7
static final java.lang.String BUTTON_8
static final java.lang.String BUTTON_9
static final java.lang.String BUTTON_10
static final java.lang.String BUTTON_11
void assignButton(java.lang.String mappingName)
mappingName
- The mapping to receive joystick button events.Joystick getJoystick()
java.lang.String getName()
java.lang.String getLogicalId()
int getButtonId()