|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Joystick
Represents a single joystick device.
| Method Summary | |
|---|---|
int |
findAxis(java.lang.String name)
Look through the axis for a given name. |
int |
getAxisCount()
|
java.lang.String[] |
getAxisNames()
Query the names of the joysticks axes. |
float |
getAxisValue(int axis)
Query the current position of a single axis. |
int |
getButtonCount()
|
java.lang.String |
getName()
|
boolean |
isButtonPressed(int button)
Query state of a button. |
void |
rumble(int axis,
float intensity)
Cause the rumbler (if existent) for specified axis to change force. |
| Method Detail |
|---|
java.lang.String[] getAxisNames()
getAxisValue(int).
int getAxisCount()
float getAxisValue(int axis)
Input.update() prior to using these method.
axis - index of the axis of interest
int getButtonCount()
boolean isButtonPressed(int button)
Input.update() prior to using these method.
button - index of a button (0 <= index < getButtonCount())
java.lang.String getName()
void rumble(int axis,
float intensity)
axis - index of the axis to be rumbledintensity - new force intensityint findAxis(java.lang.String name)
name - the name of the axis we are looking for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||