|
|||||||||||
| 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.AbsoluteMouse
AbsoluteMouse defines a mouse object that maintains a position
within the window. Each call to update adjusts the current position by the
change in position since the previous update. The mouse is forced to be
contained within the values provided during construction (typically these
correspond to the width and height of the window).
| 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 | |
AbsoluteMouse(java.lang.String name,
int width,
int height)
Constructor instantiates a new AbsoluteMouse object. |
|
| Method Summary | |
void |
setLimit(int width,
int height)
set the mouse's limit. |
void |
update()
update sets the mouse's current position within the
window. |
void |
update(boolean updateState)
update updates the mouse's information with the last known
mouse movement and button presses. |
| 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 AbsoluteMouse(java.lang.String name,
int width,
int height)
AbsoluteMouse object. The
limits of the mouse movements are provided.
name - the name of the scene element. This is required for
identification and comparision purposes.width - the width of the mouse's limit.height - the height of the mouse's limit.| Method Detail |
public void update()
update sets the mouse's current position within the
window.
update in class MouseMouse.update(boolean)public void update(boolean updateState)
update updates the mouse's information with the last known
mouse movement and button presses. If updateState is true, the mouse is
polled for new movement and button press information
update in class MouseupdateState - Mouse information is updated if trueMouse.update(boolean)
public void setLimit(int width,
int height)
width - the width of the mouse's limit.height - the height of the mouse's limit.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||