jmetest.game.state
Class IngameHandler

java.lang.Object
  extended bycom.jme.input.InputHandler
      extended byjmetest.game.state.IngameHandler

public class IngameHandler
extends InputHandler

Author:
Per Thulin This is basically the FirstPersonHandler but without the capability to exit the application.

Field Summary
 
Fields inherited from class com.jme.input.InputHandler
buffKeyActions, keyActions, keyboard, mouse, mouseActions, useBufferedKeyboard
 
Constructor Summary
IngameHandler(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

IngameHandler

public IngameHandler(Camera cam,
                     java.lang.String api)
Creates a first person handler. The camera is used for mouse look, and the api string is used to find the correct keyboard input.

Parameters:
cam - The camera to move by this handler.
api - The API to create a KeyBindingManager from.