com.jme.input.joystick
Interface JoystickInputListener

All Known Implementing Classes:
ControlFieldListener, TriggersJoystickInputListener

public interface JoystickInputListener

Listener receiving event for every axis- and button-change of all the joysticks.

Author:
Matthew D. Hicks, Irrisor
See Also:
JoystickInput

Method Summary
 void onAxis(Joystick controller, int axis, float axisValue)
          Invoked when an axis has changed it's value.
 void onButton(Joystick controller, int button, boolean pressed)
          Invoked when a button was pressed or released.
 

Method Detail

onButton

void onButton(Joystick controller,
              int button,
              boolean pressed)
Invoked when a button was pressed or released.

Parameters:
controller - joystick the button belongs to
button - index of the button
pressed - true if button was pressed, false if released

onAxis

void onAxis(Joystick controller,
            int axis,
            float axisValue)
Invoked when an axis has changed it's value.

Parameters:
controller - joystick the axis belongs to
axis - index of the axis
axisValue - new value of the axis