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