Package com.jme3.input
Interface JoystickButton
- All Known Implementing Classes:
- DefaultJoystickButton
public interface JoystickButton
Represents a single button of a Joystick.
- 
Field SummaryFields
- 
Method SummaryModifier 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- 
assignButtonAssign the mapping name to receive events from the given button index on the joystick.- Parameters:
- mappingName- The mapping to receive joystick button events.
 
- 
getJoystickJoystick getJoystick()Returns the joystick to which this axis object belongs.- Returns:
- the pre-existing instance
 
- 
getNameString getName()Returns the name of this joystick.- Returns:
- the name of this joystick.
 
- 
getLogicalIdString getLogicalId()Returns the logical identifier of this joystick axis.- Returns:
- the logical identifier of this joystick.
 
- 
getButtonIdint getButtonId()Returns the unique buttonId of this joystick axis within a given InputManager context.- Returns:
- the buttonId of this joystick axis.
 
 
-