|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.input.joystick.lwjgl.LWJGLJoystick
class LWJGLJoystick
LWJGL Implementation of Joystick
.
Constructor Summary | |
---|---|
LWJGLJoystick(Controller controller)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
LWJGLJoystick(Controller controller)
Method Detail |
---|
public void rumble(int axis, float intensity)
Joystick
rumble
in interface Joystick
axis
- index of the axis to be rumbledintensity
- new force intensitypublic java.lang.String[] getAxisNames()
Joystick
Joystick.getAxisValue(int)
.
getAxisNames
in interface Joystick
public int getAxisCount()
getAxisCount
in interface Joystick
public float getAxisValue(int axis)
Joystick
Input.update()
prior to using these method.
getAxisValue
in interface Joystick
axis
- index of the axis of interest
public int getButtonCount()
getButtonCount
in interface Joystick
public boolean isButtonPressed(int button)
Joystick
Input.update()
prior to using these method.
isButtonPressed
in interface Joystick
button
- index of a button (0 <= index < Joystick.getButtonCount()
)
public java.lang.String getName()
getName
in interface Joystick
public int findAxis(java.lang.String name)
Joystick
findAxis
in interface Joystick
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 |