com.jme3.input.event
Class JoyAxisEvent

java.lang.Object
  extended by com.jme3.input.event.InputEvent
      extended by com.jme3.input.event.JoyAxisEvent

public class JoyAxisEvent
extends InputEvent

Joystick axis event.


Field Summary
 
Fields inherited from class com.jme3.input.event.InputEvent
consumed, time
 
Constructor Summary
JoyAxisEvent(int joyIdx, int axisIdx, float value)
           
 
Method Summary
 int getAxisIndex()
          Returns the joystick axis index.
 int getJoyIndex()
          The joystick index.
 float getValue()
          The value of the axis.
 
Methods inherited from class com.jme3.input.event.InputEvent
getTime, isConsumed, setConsumed, setTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoyAxisEvent

public JoyAxisEvent(int joyIdx,
                    int axisIdx,
                    float value)
Method Detail

getAxisIndex

public int getAxisIndex()
Returns the joystick axis index.

Returns:
joystick axis index.
See Also:
Joystick.assignAxis(java.lang.String, java.lang.String, int)

getJoyIndex

public int getJoyIndex()
The joystick index.

Returns:
joystick index.
See Also:
InputManager.getJoysticks()

getValue

public float getValue()
The value of the axis.

Returns:
value of the axis.