public class JoyAxisEvent extends InputEvent
consumed, time| Constructor and Description |
|---|
JoyAxisEvent(JoystickAxis axis,
float value) |
| Modifier and Type | Method and Description |
|---|---|
JoystickAxis |
getAxis()
Returns the JoystickAxis that triggered this event.
|
int |
getAxisIndex()
Returns the joystick axis index.
|
int |
getJoyIndex()
The joystick index.
|
float |
getValue()
The value of the axis.
|
getTime, isConsumed, setConsumed, setTimepublic JoyAxisEvent(JoystickAxis axis, float value)
public JoystickAxis getAxis()
public int getAxisIndex()
JoystickAxis.assignAxis(java.lang.String, java.lang.String)public int getJoyIndex()
InputManager.getJoysticks()public float getValue()