Package com.jme3.input.event
Class JoyButtonEvent
java.lang.Object
com.jme3.input.event.InputEvent
com.jme3.input.event.JoyButtonEvent
Joystick button event.
- 
Field Summary
Fields inherited from class com.jme3.input.event.InputEvent
consumed, time - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionReturns the JoystickButton that triggered this event.intThe button index.intThe joystick index.booleanReturns true if the event was a button press, returns false if the event was a button release.Methods inherited from class com.jme3.input.event.InputEvent
getTime, isConsumed, setConsumed, setTime 
- 
Constructor Details
- 
JoyButtonEvent
 
 - 
 - 
Method Details
- 
getButton
Returns the JoystickButton that triggered this event.- Returns:
 - the button
 - See Also:
 
 - 
getButtonIndex
public int getButtonIndex()The button index.- Returns:
 - button index.
 - See Also:
 
 - 
getJoyIndex
public int getJoyIndex()The joystick index.- Returns:
 - joystick index.
 - See Also:
 
 - 
isPressed
public boolean isPressed()Returns true if the event was a button press, returns false if the event was a button release.- Returns:
 - true if the event was a button press, false if the event was a button release.
 
 
 -