Package com.jme3.input
Interface JoystickButton
- All Known Implementing Classes:
 DefaultJoystickButton
public interface JoystickButton
Represents a single button of a Joystick.
- 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptionvoidassignButton(String mappingName) Assign the mapping name to receive events from the given button index on the joystick.intReturns the unique buttonId of this joystick axis within a given InputManager context.Returns the joystick to which this axis object belongs.Returns the logical identifier of this joystick axis.getName()Returns the name of this joystick. 
- 
Field Details
- 
BUTTON_0
- See Also:
 
 - 
BUTTON_1
- See Also:
 
 - 
BUTTON_2
- See Also:
 
 - 
BUTTON_3
- See Also:
 
 - 
BUTTON_4
- See Also:
 
 - 
BUTTON_5
- See Also:
 
 - 
BUTTON_6
- See Also:
 
 - 
BUTTON_7
- See Also:
 
 - 
BUTTON_8
- See Also:
 
 - 
BUTTON_9
- See Also:
 
 - 
BUTTON_10
- See Also:
 
 - 
BUTTON_11
- See Also:
 
 
 - 
 - 
Method Details
- 
assignButton
Assign the mapping name to receive events from the given button index on the joystick.- Parameters:
 mappingName- The mapping to receive joystick button events.
 - 
getJoystick
Joystick getJoystick()Returns the joystick to which this axis object belongs.- Returns:
 - the pre-existing instance
 
 - 
getName
String getName()Returns the name of this joystick.- Returns:
 - the name of this joystick.
 
 - 
getLogicalId
String getLogicalId()Returns the logical identifier of this joystick axis.- Returns:
 - the logical identifier of this joystick.
 
 - 
getButtonId
int getButtonId()Returns the unique buttonId of this joystick axis within a given InputManager context.- Returns:
 - the buttonId of this joystick axis.
 
 
 -