|
|||||||||||
| 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
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.
| Field Summary |
| Fields inherited from class com.jme.input.Mouse |
_speed, hasCursor, hotSpotLocation, hotSpotOffset, imageHeight, imageWidth, mouse |
| Fields inherited from class com.jme.scene.TriMesh |
indices, triangleQuantity |
| Fields inherited from class com.jme.scene.Geometry |
bound, color, colorBuf, normal, normBuf, texBuf, texture, vertBuf, vertex, vertQuantity |
| Fields inherited from class com.jme.scene.Spatial |
currentStates, defaultStateList, forceCull, forceView, frustrumIntersects, geometricalControllers, lightCombineMode, localRotation, localScale, localTranslation, name, 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 |
update()
update sets the translation vector to the change from the
previous polling. |
void |
update(boolean updateState)
update updates the mouse's position by simply adding to
the current location the mouse's X and Y movement delta. |
| Methods inherited from class com.jme.input.Mouse |
getHotSpotOffset, getHotSpotPosition, getImageHeight, getImageWidth, getMouseInput, hasCursor, setHotSpotOffset, setMouseInput, setRenderState, setSpeed |
| Methods inherited from class com.jme.scene.shape.Quad |
getCenter, initialize, resize |
| Methods inherited from class com.jme.scene.TriMesh |
clearBuffers, draw, drawBounds, findCollisions, findTriangleCollision, findTrianglePick, findWorldRotMat, getIndexAsBuffer, getIndices, getMeshAsTriangles, getTriangle, getTriangle, getTriangleQuantity, hasCollision, hasTriangleCollision, putClone, reconstruct, setIndexBuffer, setIndices, updateCollisionTree, updateIndexBuffer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RelativeMouse(java.lang.String name)
RelativeMouse object.
name - the name of the scene element. This is required for
identification and comparision purposes.| Method Detail |
public void update()
update sets the translation vector to the change from the
previous polling.
update in class MouseMouse.update(boolean)public void update(boolean updateState)
update updates the mouse's position by simply adding to
the current location the mouse's X and Y movement delta. Unlike
AbsoluteMouse, no checks are made for moving outside a paticular bounds
because this class is used only for frame to frame relative movements.
update in class MouseupdateState - Mouse.update(boolean)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||