public class JoyAxisEvent extends InputEvent
consumed, time| Constructor and Description | 
|---|
| JoyAxisEvent(JoystickAxis axis,
            float value)Creates a new event for a joystick axis. | 
| JoyAxisEvent(JoystickAxis axis,
            float value,
            float rawValue)Creates a new event for a joystick axis. | 
| 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 | getRawValue()The value of the axis before it was remapped. | 
| float | getValue()The value of the axis. | 
getTime, isConsumed, setConsumed, setTimepublic JoyAxisEvent(JoystickAxis axis, float value)
axis - - The axis that generated this event.value - - The value of the axis.public JoyAxisEvent(JoystickAxis axis, float value, float rawValue)
axis - - The axis that generated this event.value - - The value of the axis, after rescaling took place.rawValue - - The original axis value before it was rescaled by JoystickCompatibilityMappings.public JoystickAxis getAxis()
JoystickAxis.assignAxis(java.lang.String, java.lang.String)public int getAxisIndex()
JoystickAxis.assignAxis(java.lang.String, java.lang.String)public int getJoyIndex()
InputManager.getJoysticks()public float getValue()
public float getRawValue()