|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.input.InputHandler
com.jme.input.FirstPersonHandler
FirsPersonController 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 and the mouse also rotates and tilts
the camera.
| Field Summary |
| Fields inherited from class com.jme.input.InputHandler |
buffKeyActions, keyActions, keyboard, mouse, mouseActions, useBufferedKeyboard |
| Constructor Summary | |
FirstPersonHandler(AbstractGame app,
Camera cam,
java.lang.String api)
Creates a first person handler. |
|
| Methods inherited from class com.jme.input.InputHandler |
addAction, addAction, addBufferedKeyAction, addKeyboardAction, clearKeyboardActions, clearMouseActions, getKeyBindingManager, getMouse, removeAction, removeAction, setKeyBindingManager, setKeySpeed, setMouse, setMouseSpeed, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FirstPersonHandler(AbstractGame app,
Camera cam,
java.lang.String api)
app - The application that is exited on an "exit" action.cam - The camera to move by this handler.api - The API to create a KeyBindingManager from.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||