|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.scene.Controller
com.jme.input.controls.controller.ActionRepeatController
public class ActionRepeatController
ActionRepeatController allows you to specify the rate at which an action is repeatable and will invoke the supplied Runnable at that repeat rate while the GameControl is being pressed.
Field Summary |
---|
Fields inherited from class com.jme.scene.Controller |
---|
RT_CLAMP, RT_CYCLE, RT_WRAP |
Constructor Summary | |
---|---|
ActionRepeatController(GameControl control,
long rate,
java.lang.Runnable action)
|
Method Summary | |
---|---|
void |
setRate(long rate)
|
void |
update(float time)
Defined by extending classes, update is a signal to
Controller that it should update whatever object(s) it is controlling. |
Methods inherited from class com.jme.scene.Controller |
---|
getClassTag, getControllerValues, getMaxTime, getMinTime, getRepeatType, getSpeed, isActive, read, setActive, setControllerValues, setMaxTime, setMinTime, setRepeatType, setSpeed, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionRepeatController(GameControl control, long rate, java.lang.Runnable action)
Method Detail |
---|
public void setRate(long rate)
public void update(float time)
Controller
update
is a signal to
Controller that it should update whatever object(s) it is controlling.
update
in class Controller
time
- The time in seconds between the last call to update and the
current one
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |