|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JoystickInputListener
Listener receiving event for every axis- and button-change of all the joysticks.
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 |
|---|
void onButton(Joystick controller,
int button,
boolean pressed)
controller - joystick the button belongs tobutton - index of the buttonpressed - true if button was pressed, false if released
void onAxis(Joystick controller,
int axis,
float axisValue)
controller - joystick the axis belongs toaxis - index of the axisaxisValue - new value of the axis
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||