public class MouseAppState extends BasePickState
Collision roots may either be perspective or orthogonal and the appropriate type of collision is done. The ViewPort's camera is used to detect the difference.
Events are delivered in near to far order to any 'target' that the cursor ray collides with until the event is consumed. Enter and exit events are delivered as targets are acquired or lost.
If a button down event happens over a target then it is considered 'captured'. This spatial will be provided to subsequent events in addition to the normal target. Furthermore, any new motion events are always delivered to the captured spatial first.
| Modifier and Type | Class and Description |
|---|---|
protected class |
MouseAppState.MouseObserver |
PICK_LAYER_GUI, PICK_LAYER_SCENE| Constructor and Description |
|---|
MouseAppState(com.jme3.app.Application app) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup(com.jme3.app.Application app) |
protected void |
dispatch(com.jme3.input.event.MouseButtonEvent evt) |
protected void |
dispatchMotion() |
addCollisionRoot, addCollisionRoot, addCollisionRoot, addCollisionRoot, findViewPort, getIncludeDefaultCollisionRoots, getPickLayerOrder, getSession, hasRequestedEnabled, initialize, onDisable, onEnable, releaseEnabled, removeCollisionRoot, removeCollisionRoot, requestEnabled, resetEnabled, setIncludeDefaultCollisionRoots, setPickLayerOrder, updatecleanup, getApplication, getState, getStateManager, initialize, isEnabled, isInitialized, postRender, render, setEnabled, stateAttached, stateDetachedprotected void cleanup(com.jme3.app.Application app)
cleanup in class BasePickStateprotected void dispatchMotion()
dispatchMotion in class BasePickStateprotected void dispatch(com.jme3.input.event.MouseButtonEvent evt)