public class CursorEventControl
extends com.jme3.scene.control.AbstractControl
Constructor and Description |
---|
CursorEventControl() |
CursorEventControl(CursorListener... listeners) |
Modifier and Type | Method and Description |
---|---|
static void |
addListenersToSpatial(com.jme3.scene.Spatial s,
CursorListener... listeners)
Convenience method that will add a CursorEventControl if it
doesn't exist, while adding the specified listeners.
|
void |
addMouseListener(CursorListener l) |
protected void |
controlRender(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp) |
protected void |
controlUpdate(float tpf) |
void |
cursorButtonEvent(CursorButtonEvent event,
com.jme3.scene.Spatial target,
com.jme3.scene.Spatial capture) |
void |
cursorEntered(CursorMotionEvent event,
com.jme3.scene.Spatial target,
com.jme3.scene.Spatial capture) |
void |
cursorExited(CursorMotionEvent event,
com.jme3.scene.Spatial target,
com.jme3.scene.Spatial capture) |
void |
cursorMoved(CursorMotionEvent event,
com.jme3.scene.Spatial target,
com.jme3.scene.Spatial capture) |
<T extends CursorListener> |
getMouseListener(java.lang.Class<T> type) |
boolean |
isEmpty() |
static void |
removeListenersFromSpatial(com.jme3.scene.Spatial s,
CursorListener... listeners)
Convenience method that will remove the specified listeners
from a Spatial only if a CursorEventControl already exists.
|
void |
removeMouseListener(CursorListener l) |
public CursorEventControl()
public CursorEventControl(CursorListener... listeners)
public static void addListenersToSpatial(com.jme3.scene.Spatial s, CursorListener... listeners)
public static void removeListenersFromSpatial(com.jme3.scene.Spatial s, CursorListener... listeners)
public <T extends CursorListener> T getMouseListener(java.lang.Class<T> type)
public boolean isEmpty()
public void addMouseListener(CursorListener l)
public void removeMouseListener(CursorListener l)
public void cursorButtonEvent(CursorButtonEvent event, com.jme3.scene.Spatial target, com.jme3.scene.Spatial capture)
public void cursorEntered(CursorMotionEvent event, com.jme3.scene.Spatial target, com.jme3.scene.Spatial capture)
public void cursorExited(CursorMotionEvent event, com.jme3.scene.Spatial target, com.jme3.scene.Spatial capture)
public void cursorMoved(CursorMotionEvent event, com.jme3.scene.Spatial target, com.jme3.scene.Spatial capture)
protected void controlRender(com.jme3.renderer.RenderManager rm, com.jme3.renderer.ViewPort vp)
controlRender
in class com.jme3.scene.control.AbstractControl
protected void controlUpdate(float tpf)
controlUpdate
in class com.jme3.scene.control.AbstractControl