|
||||||||||
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.ThreeDMultiTouchElement
apps.threedbuttonsexperiment.gesture.MultiTouchButtonPress
public class MultiTouchButtonPress
The Class MultiTouchButtonPress.
Nested Class Summary | |
---|---|
static interface |
MultiTouchButtonPress.FreeButtonListener
The listener interface for receiving freeButton events. |
Field Summary |
---|
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement |
---|
AXIS_Z, DIRECTION_UP |
Constructor Summary | |
---|---|
MultiTouchButtonPress(com.jme.scene.Spatial s)
Instantiates a new multi touch button press. |
|
MultiTouchButtonPress(com.jme.scene.Spatial pickSpatial,
com.jme.scene.Spatial targetSpatial)
Instantiates a new multi touch button press. |
Method Summary | |
---|---|
void |
addButtonListener(MultiTouchButtonPress.FreeButtonListener listener)
Adds the button 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. |
float |
getButtonHeight()
Gets the button height. |
void |
setButtonHeight(float buttonHeight)
Sets the button height. |
Methods inherited from class synergynetframework.jme.cursorsystem.ThreeDMultiTouchElement |
---|
getPickDataForCursorID, getPickResultFromCursorIndex, registerScreenCursor |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiTouchButtonPress(com.jme.scene.Spatial s)
s
- the spublic MultiTouchButtonPress(com.jme.scene.Spatial pickSpatial, com.jme.scene.Spatial targetSpatial)
pickSpatial
- the pick spatialtargetSpatial
- the target spatialMethod Detail |
---|
public void addButtonListener(MultiTouchButtonPress.FreeButtonListener listener)
listener
- the listenerpublic 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 float getButtonHeight()
public void setButtonHeight(float buttonHeight)
buttonHeight
- the new button height
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |