com.jme.input
Class KeyboardLookHandler
java.lang.Object
com.jme.input.InputHandler
com.jme.input.KeyboardLookHandler
public class KeyboardLookHandler
- extends InputHandler
KeyboardLookHandler
defines an InputHandler that sets
input to be controlled similar to First Person Shooting games. By default the
commands are, WSAD moves the camera forward, backward and strafes. The
arrow keys rotate and tilt the camera.
Fields inherited from class com.jme.input.InputHandler |
activeTriggers, allTriggers, AXIS_ALL, AXIS_NONE, BUTTON_ALL, BUTTON_NONE, DEVICE_ALL, DEVICE_KEYBOARD, DEVICE_MOUSE, event, mouse |
Methods inherited from class com.jme.input.InputHandler |
addAction, addAction, addAction, addAction, addAction, addAction, addDevice, addToAttachedHandlers, clearActions, getBooleanProp, getDevices, getFloatProp, getFromAttachedHandlers, getIntProp, getObjectProp, getParent, isEnabled, processTriggers, removeAction, removeAction, removeAllActions, removeAllFromAttachedHandlers, removeFromAttachedHandlers, setActionSpeed, setActionSpeed, setEnabled, setEnabledOfAttachedHandlers, setParent, sizeOfAttachedHandlers, update, updateAttachedHandlers |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyboardLookHandler
public KeyboardLookHandler(Camera cam,
float moveSpeed,
float rotateSpeed)
setLockAxis
public void setLockAxis(Vector3f lock)
setUpAxis
public void setUpAxis(Vector3f upAxis)
getMoveSpeed
public float getMoveSpeed()
setMoveSpeed
public void setMoveSpeed(float moveSpeed)