|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectzombie.input.Mouse
public class Mouse
this class manages the mouse inputs.
Field Summary | |
---|---|
static boolean |
collisionMode
|
static int |
hotspotX
|
static int |
hotspotY
|
static boolean |
left
indicates if the left button is down or not |
static boolean |
middle
indicates if the middle button is down or not |
static boolean |
oldLeft
indicates if the left button is down or not |
static boolean |
oldMiddle
indicates if the middle button is down or not |
static boolean |
oldRight
indicates if the right button is down or not |
static boolean |
right
indicates if the right button is down or not |
static boolean[] |
UICaptured
|
static boolean |
useLwjgl
|
Constructor Summary | |
---|---|
Mouse()
|
Method Summary | |
---|---|
static int |
getDeltaX()
|
static int |
getDeltaY()
|
static int |
getWheelState()
|
static int |
getX()
returns the x coordinate of mouse on the Camera the coordinates are relative to the game's Camera system |
static int |
getXA()
|
static int |
getY()
returns the y coordinate of mouse on the Camera the coordinates are relative to the game's Camera system |
static int |
getYA()
|
static boolean |
isButtonDown(int number)
only with LWJGL |
static boolean |
isButtonDownUICheck(int number)
|
static boolean |
isGuiMode()
|
static boolean |
isLeftDown()
|
static boolean |
isLeftPressed()
|
static boolean |
isLeftReleased()
|
static boolean |
isLeftUp()
|
static boolean |
isMiddleDown()
|
static boolean |
isMiddlePressed()
|
static boolean |
isMiddleReleased()
|
static boolean |
isMiddleUp()
|
static boolean |
isRightDown()
|
static boolean |
isRightPressed()
returns the state of the Weel's mouse |
static boolean |
isRightReleased()
|
static boolean |
isRightUp()
|
static void |
loop()
data loop of mouse: updates the x,y coordiantes and the button status |
static void |
resetClickableObjects()
|
static void |
setCursor(ITexture image)
|
static void |
setGuiMode(boolean guiMode)
|
static void |
setXY(int x,
int y)
|
static void |
UIBlockButtonDown(int number)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean useLwjgl
public static boolean left
public static boolean oldLeft
public static boolean right
public static boolean oldRight
public static boolean middle
public static boolean oldMiddle
public static boolean collisionMode
public static int hotspotX
public static int hotspotY
public static boolean[] UICaptured
Constructor Detail |
---|
public Mouse()
Method Detail |
---|
public static int getDeltaX()
public static int getDeltaY()
public static int getWheelState()
public static int getX()
public static int getXA()
public static int getYA()
public static int getY()
public static boolean isButtonDown(int number)
public static void UIBlockButtonDown(int number)
public static boolean isButtonDownUICheck(int number)
public static boolean isGuiMode()
public static boolean isLeftDown()
public static boolean isLeftPressed()
public static boolean isLeftReleased()
public static boolean isLeftUp()
public static boolean isMiddleDown()
public static boolean isMiddlePressed()
public static boolean isMiddleReleased()
public static boolean isMiddleUp()
public static boolean isRightDown()
public static boolean isRightPressed()
public static boolean isRightReleased()
public static boolean isRightUp()
public static void loop()
public static void resetClickableObjects()
public static void setCursor(ITexture image)
public static void setGuiMode(boolean guiMode)
public static void setXY(int x, int y)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |