|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.scene.Spatial
com.jme.scene.Geometry
com.jme.scene.TriMesh
com.jme.scene.shape.Quad
com.jme.input.Mouse
com.jme.input.RelativeMouse
public class RelativeMouse
RelativeMouse defines a mouse controller that only maintains
the relative change from one poll to the next. This does not maintain the
position of a mouse in a rendering window. This type of controller is
typically useful for a first person mouse look or similar.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jme.scene.TriMesh |
|---|
TriMesh.Mode |
| Nested classes/interfaces inherited from class com.jme.scene.Spatial |
|---|
Spatial.CullHint, Spatial.LightCombineMode, Spatial.NormalsMode, Spatial.TextureCombineMode |
| Field Summary | |
|---|---|
protected float |
_speed
|
| Fields inherited from class com.jme.input.Mouse |
|---|
hasCursor, hotSpotLocation, hotSpotOffset, imageHeight, imageWidth |
| Fields inherited from class com.jme.scene.shape.Quad |
|---|
height, width |
| Fields inherited from class com.jme.scene.TriMesh |
|---|
indexBuffer, mode, triangleQuantity |
| Fields inherited from class com.jme.scene.Geometry |
|---|
binormalBuf, bound, castsShadows, colorBuf, compVect, defaultColor, displayListID, enabled, fogBuf, hasDirtyVertices, normBuf, states, tangentBuf, texBuf, vboInfo, vertBuf, vertQuantity |
| Fields inherited from class com.jme.scene.Spatial |
|---|
collisionBits, cullHint, frustrumIntersects, geometricalControllers, lightCombineMode, localRotation, localScale, localTranslation, LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, lockedMode, name, normalsMode, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder |
| Constructor Summary | |
|---|---|
RelativeMouse(java.lang.String name)
Constructor creates a new RelativeMouse object. |
|
| Method Summary | |
|---|---|
void |
registerWithInputHandler(InputHandler inputHandler)
|
void |
setSpeed(float speed)
Sets the speed multiplier for updating the cursor position |
| Methods inherited from class com.jme.input.Mouse |
|---|
getHotSpotOffset, getHotSpotPosition, getImageHeight, getImageWidth, hasCursor, setHotSpotOffset, setRenderState |
| Methods inherited from class com.jme.scene.shape.Quad |
|---|
getCenter, getHeight, getWidth, initialize, resize, updateGeometry |
| Methods inherited from class com.jme.scene.TriMesh |
|---|
clearBuffers, draw, findCollisions, findTriangleCollision, findTrianglePick, getIndexBuffer, getMaxIndex, getMeshAsTriangles, getMeshAsTrianglesVertices, getMode, getTriangle, getTriangle, getTriangleCount, getTriangleIndices, getVertIndex, hasCollision, hasTriangleCollision, hasTriangleCollision, randomPointOnTriangles, read, recalcTriangleQuantity, reconstruct, setIndexBuffer, setMode, setTriangleQuantity, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.jme.util.export.Savable |
|---|
getClassTag |
| Field Detail |
|---|
protected float _speed
| Constructor Detail |
|---|
public RelativeMouse(java.lang.String name)
RelativeMouse object.
name - the name of the scene element. This is required for
identification and comparison purposes.| Method Detail |
|---|
public void registerWithInputHandler(InputHandler inputHandler)
registerWithInputHandler in class Mousepublic void setSpeed(float speed)
setSpeed in class Mousespeed -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||