|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.input.action.InputAction
public abstract class InputAction
An InputAction
can be subscribed at an InputHandler
to get its
InputActionInterface.performAction(InputActionEvent)
method called on specific event triggers.
It also defines an interface that sets the criteria for
input actions, e.g. the speed of the action.
Field Summary | |
---|---|
protected float |
speed
A speed value that, if desired, can change how actions are performed. |
Constructor Summary | |
---|---|
InputAction()
|
Method Summary | |
---|---|
float |
getSpeed()
Returns the currently set speed. |
void |
setSpeed(float speed)
setSpeed defines the speed at which this action occurs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jme.input.action.InputActionInterface |
---|
performAction |
Field Detail |
---|
protected float speed
Constructor Detail |
---|
public InputAction()
Method Detail |
---|
public void setSpeed(float speed)
setSpeed
defines the speed at which this action occurs.
speed
- the speed at which this action occurs.public float getSpeed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |