com.jme.input
Class KeyboardLookHandler

java.lang.Object
  extended by com.jme.input.InputHandler
      extended by 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.


Field Summary
 
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
 
Constructor Summary
KeyboardLookHandler(Camera cam, float moveSpeed, float rotateSpeed)
           
 
Method Summary
 float getMoveSpeed()
           
 void setLockAxis(Vector3f lock)
           
 void setMoveSpeed(float moveSpeed)
           
 void setUpAxis(Vector3f upAxis)
           
 
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
 

Constructor Detail

KeyboardLookHandler

public KeyboardLookHandler(Camera cam,
                           float moveSpeed,
                           float rotateSpeed)
Method Detail

setLockAxis

public void setLockAxis(Vector3f lock)

setUpAxis

public void setUpAxis(Vector3f upAxis)

getMoveSpeed

public float getMoveSpeed()

setMoveSpeed

public void setMoveSpeed(float moveSpeed)