Package com.jme3.input
Class DefaultJoystickButton
java.lang.Object
com.jme3.input.DefaultJoystickButton
- All Implemented Interfaces:
 JoystickButton
Default implementation of the JoystickButton interface.
- 
Field Summary
 - 
Constructor Summary
ConstructorsConstructorDescriptionDefaultJoystickButton(InputManager inputManager, Joystick parent, int buttonIndex, String name, String logicalId)  - 
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.toString() 
- 
Constructor Details
- 
DefaultJoystickButton
public DefaultJoystickButton(InputManager inputManager, Joystick parent, int buttonIndex, String name, String logicalId)  
 - 
 - 
Method Details
- 
assignButton
Assign the mapping name to receive events from the given button index on the joystick.- Specified by:
 assignButtonin interfaceJoystickButton- Parameters:
 mappingName- The mapping to receive joystick button events.
 - 
getJoystick
Returns the joystick to which this axis object belongs.- Specified by:
 getJoystickin interfaceJoystickButton- Returns:
 - the pre-existing instance
 
 - 
getName
Returns the name of this joystick.- Specified by:
 getNamein interfaceJoystickButton- Returns:
 - the name of this joystick.
 
 - 
getLogicalId
Returns the logical identifier of this joystick axis.- Specified by:
 getLogicalIdin interfaceJoystickButton- Returns:
 - the logical identifier of this joystick.
 
 - 
getButtonId
public int getButtonId()Returns the unique buttonId of this joystick axis within a given InputManager context.- Specified by:
 getButtonIdin interfaceJoystickButton- Returns:
 - the buttonId of this joystick axis.
 
 - 
toString
 
 -