|
||||||||||
| 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.NodeHandler
public class NodeHandler
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.
| 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 | |
|---|---|
NodeHandler(Spatial node)
Constructor instantiates a new NodeHandler object. |
|
NodeHandler(Spatial node,
float keySpeed,
float mouseSpeed)
Constructor instantiates a new NodeHandler object. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeHandler(Spatial node)
NodeHandler object. The
application is set for the use of the exit action. The node is set to
control.
node - the node to control.
public NodeHandler(Spatial node,
float keySpeed,
float mouseSpeed)
NodeHandler object. The
application is set for the use of the exit action. The node is set to
control.
node - the node to control.keySpeed - action speed for key actions (move)mouseSpeed - action speed for mouse actions (rotate)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||