org.xith3d.utility.input
Class KeyAdjustableFloat
java.lang.Object
org.xith3d.loop.opscheduler.impl.ScheduledOperationImpl
org.xith3d.utility.input.KeyAdjustableFloat
- All Implemented Interfaces:
- ScheduledOperation, Updatable
public class KeyAdjustableFloat
- extends ScheduledOperationImpl
A float value adjustable by keyboard events.
You can adjust the keys which are used
to increase/decrease the value.
|
Constructor Summary |
KeyAdjustableFloat(org.jagatoo.input.devices.components.Key vkDown,
org.jagatoo.input.devices.components.Key vkUp,
float speed,
OperationScheduler opSched)
New KeyAdjustableFloat |
KeyAdjustableFloat(org.jagatoo.input.devices.components.Key vkDown,
org.jagatoo.input.devices.components.Key vkUp,
org.jagatoo.input.devices.components.Key vkDisp,
float speed,
OperationScheduler opSched)
New KeyAdjustableFloat |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyAdjustableFloat
public KeyAdjustableFloat(org.jagatoo.input.devices.components.Key vkDown,
org.jagatoo.input.devices.components.Key vkUp,
org.jagatoo.input.devices.components.Key vkDisp,
float speed,
OperationScheduler opSched)
- New KeyAdjustableFloat
- Parameters:
vkDown - vkUp - vkDisp - speed - opSched -
KeyAdjustableFloat
public KeyAdjustableFloat(org.jagatoo.input.devices.components.Key vkDown,
org.jagatoo.input.devices.components.Key vkUp,
float speed,
OperationScheduler opSched)
- New KeyAdjustableFloat
- Parameters:
vkDown - vkUp - speed - opSched -
setValue
public void setValue(float value)
setValue
public void setValue(java.lang.Float value)
getValue
public final float getValue()
update
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
- Updates this Updatable object.
- Parameters:
gameTime - the gameTime in MillisecondsframeTime - the frameTime in Milliseconds (needed time for the last frame)timingMode - the TimingMode to use for frameTime.