|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeud.testgame.util.MouseMapper
A helper class similar to the KeyMapper-class from the jPCT-API that simplyfies mouse handling.
Constructor Summary | |
MouseMapper(com.threed.jpct.FrameBuffer buffer)
Create a new mapper. |
Method Summary | |
boolean |
buttonDown(int button)
If a mouse button down? |
void |
destroy()
Destroy the mapper and the mouse (virtually...:-)) |
int |
getDeltaX()
Gets the delta in x-direction since the last call. |
int |
getDeltaY()
Gets the delta in y-direction since the last call. |
int |
getMouseX()
Gets the x-coordinate of the mouse. |
int |
getMouseY()
Gets the y-coordinate of the mouse. |
void |
hide()
Hide the mouse. |
boolean |
isVisible()
Is the mouse visible (i.e. not hidden)? |
void |
show()
Show the mouse. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MouseMapper(com.threed.jpct.FrameBuffer buffer)
buffer
- the current frame bufferMethod Detail |
public void hide()
public void show()
public boolean isVisible()
public void destroy()
public boolean buttonDown(int button)
button
- the button's number
public int getMouseX()
public int getMouseY()
public int getDeltaX()
public int getDeltaY()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |