|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.jme.cursorsystem.MultiTouchElement
synergynetframework.jme.cursorsystem.TwoDMultiTouchElement
synergynetframework.jme.cursorsystem.elements.twod.OrthoCursorEventDispatcher
public class OrthoCursorEventDispatcher
The Class OrthoCursorEventDispatcher.
Nested Class Summary | |
---|---|
static interface |
OrthoCursorEventDispatcher.CommonCursorEventListener
The listener interface for receiving commonCursorEvent events. |
Field Summary |
---|
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement |
---|
AXIS_Z, DIRECTION_UP |
Constructor Summary | |
---|---|
OrthoCursorEventDispatcher(com.jme.scene.Spatial pickingAndTargetSpatial)
Instantiates a new ortho cursor event dispatcher. |
|
OrthoCursorEventDispatcher(com.jme.scene.Spatial pickingSpatial,
com.jme.scene.Spatial targetSpatial)
Instantiates a new ortho cursor event dispatcher. |
Method Summary | |
---|---|
void |
addMultiTouchListener(OrthoCursorEventDispatcher.CommonCursorEventListener l)
Adds the multi touch listener. |
void |
cursorChanged(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor changed. |
void |
cursorClicked(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor clicked. |
void |
cursorPressed(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor pressed. |
void |
cursorReleased(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor released. |
void |
removeMultiTouchListener(OrthoCursorEventDispatcher.CommonCursorEventListener l)
Removes the multi touch listener. |
void |
setRightClickDistance(float rightClickDistance)
Sets the right click distance. |
Methods inherited from class synergynetframework.jme.cursorsystem.TwoDMultiTouchElement |
---|
getCursorScreenPositionAtPick, getPickDataForCursorID, getPickResultFromCursorIndex, getSpatial2DWorldPositionAtPick, registerScreenCursor |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrthoCursorEventDispatcher(com.jme.scene.Spatial pickingAndTargetSpatial)
pickingAndTargetSpatial
- the picking and target spatialpublic OrthoCursorEventDispatcher(com.jme.scene.Spatial pickingSpatial, com.jme.scene.Spatial targetSpatial)
pickingSpatial
- the picking spatialtargetSpatial
- the target spatialMethod Detail |
---|
public void addMultiTouchListener(OrthoCursorEventDispatcher.CommonCursorEventListener l)
l
- the lpublic void cursorChanged(ScreenCursor c, MultiTouchCursorEvent event)
MultiTouchElement
cursorChanged
in class MultiTouchElement
c
- the cevent
- the eventpublic void cursorClicked(ScreenCursor c, MultiTouchCursorEvent event)
MultiTouchElement
cursorClicked
in class MultiTouchElement
c
- the cevent
- the eventpublic void cursorPressed(ScreenCursor c, MultiTouchCursorEvent event)
MultiTouchElement
cursorPressed
in class MultiTouchElement
c
- the cevent
- the eventpublic void cursorReleased(ScreenCursor c, MultiTouchCursorEvent event)
MultiTouchElement
cursorReleased
in class MultiTouchElement
c
- the cevent
- the eventpublic void removeMultiTouchListener(OrthoCursorEventDispatcher.CommonCursorEventListener l)
l
- the lpublic void setRightClickDistance(float rightClickDistance)
rightClickDistance
- the new right click distance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |