com.jme.input
Class NodeHandler

java.lang.Object
  extended bycom.jme.input.InputHandler
      extended bycom.jme.input.NodeHandler

public class NodeHandler
extends InputHandler

NodeHandler defines an InputHandler that sets a node that can be controlled via keyboard and mouse inputs. By default the commands are, WSAD moves the node forward, backward and strafes. The arrow keys rotate and tilt the node and the mouse also rotates and tilts the node.

Version:
$Id: NodeHandler.java,v 1.4 2004/10/14 01:23:07 mojomonkey Exp $
Author:
Mark Powell

Field Summary
 
Fields inherited from class com.jme.input.InputHandler
buffKeyActions, keyActions, keyboard, mouse, mouseActions, useBufferedKeyboard
 
Constructor Summary
NodeHandler(AbstractGame app, Spatial node, java.lang.String api)
          Constructor instantiates a new NodeHandler object.
 
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

NodeHandler

public NodeHandler(AbstractGame app,
                   Spatial node,
                   java.lang.String api)
Constructor instantiates a new NodeHandler object. The application is set for the use of the exit action. The node is set to control, while the api defines which input api is to be used.

Parameters:
app - the app using the controller, for the exit action.
node - the node to control.
api - the api to use for input.