|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sdljava.event.MouseState
public class MouseState
The current state of the mouse. The x and y position as well as the button state.
Field Summary | |
---|---|
(package private) MouseButtonState |
buttonState
|
(package private) int |
x
|
(package private) int |
y
|
Constructor Summary | |
---|---|
MouseState(int x,
int y,
int buttons)
Creates a new MouseState instance. |
Method Summary | |
---|---|
MouseButtonState |
getButtonState()
Gets the value of buttonState |
int |
getX()
Gets the value of x |
int |
getY()
Gets the value of y |
java.lang.String |
toString()
Return a string represenation of this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
int x
int y
MouseButtonState buttonState
Constructor Detail |
---|
public MouseState(int x, int y, int buttons)
MouseState
instance.
x
- an int
valuey
- an int
valuebuttons
- an int
valueMethod Detail |
---|
public int getX()
public int getY()
public MouseButtonState getButtonState()
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 |