|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.input.event.InputEvent
com.jme3.input.event.MouseButtonEvent
public class MouseButtonEvent
Mouse button press/release event.
Field Summary |
---|
Fields inherited from class com.jme3.input.event.InputEvent |
---|
consumed, time |
Constructor Summary | |
---|---|
MouseButtonEvent(int btnIndex,
boolean pressed,
int x,
int y)
|
Method Summary | |
---|---|
int |
getButtonIndex()
Returns the mouse button index. |
int |
getX()
The X coordinate of the mouse when the event was generated. |
int |
getY()
The Y coordinate of the mouse when the event was generated. |
boolean |
isPressed()
Returns true if the mouse button was pressed, false if it was released. |
boolean |
isReleased()
Returns true if the mouse button was released, false if it was pressed. |
java.lang.String |
toString()
|
Methods inherited from class com.jme3.input.event.InputEvent |
---|
getTime, isConsumed, setConsumed, setTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MouseButtonEvent(int btnIndex, boolean pressed, int x, int y)
Method Detail |
---|
public int getButtonIndex()
See constants in MouseInput
.
public boolean isPressed()
public boolean isReleased()
public int getX()
public int getY()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |