|
||||||||||
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,
float keySpeed,
float mouseSpeed)
Constructor instantiates a new NodeHandler object. |
|
NodeHandler(Spatial node,
java.lang.String api)
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, java.lang.String api)
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.
node
- the node to control.api
- not usedpublic 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, while the api defines which input api is to be used.
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 |