|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
MouseInput defines an interface to communicate with the mouse
input device.
| Field Summary | |
static int |
BUTTON_1
|
static int |
BUTTON_1_2
|
static int |
BUTTON_1_2_3
|
static int |
BUTTON_1_3
|
static int |
BUTTON_2
|
static int |
BUTTON_2_3
|
static int |
BUTTON_3
|
| Method Summary | |
void |
destroy()
destroy cleans up the native mouse interface. |
int |
getButtonIndex(java.lang.String buttonName)
getButtonIndex gets the button code for a given button
name. |
java.lang.String |
getButtonName(int buttonIndex)
getButtonName gets the button name for a given button
code. |
MouseButtonStateType |
getButtonState()
|
MouseButtonStateType |
getPreviousButtonState()
|
int |
getWheelDelta()
getWheelDelta gets the change in the mouse wheel. |
int |
getXAbsolute()
getXAbsolute gets the absolute x axis value. |
int |
getXDelta()
getXDelta gets the change along the x axis. |
int |
getYAbsolute()
getYAbsolute gets the absolute y axis value. |
int |
getYDelta()
getYDelta gets the change along the y axis. |
boolean |
isButtonDown(int buttonCode)
isButtonDown returns true if a given button is pressed,
false if it is not pressed. |
boolean |
isCreated()
isCreated returns true if the mouse input is created,
false otherwise. |
boolean |
isCursorVisible()
isCursorVisible |
void |
poll()
poll updates the mouse. |
void |
setCursorVisible(boolean v)
setCursorVisible sets the visiblity of the hardware cursor. |
void |
updateState()
updateState updates the mouse state. |
| Field Detail |
public static final int BUTTON_1
public static final int BUTTON_2
public static final int BUTTON_3
public static final int BUTTON_1_2
public static final int BUTTON_1_3
public static final int BUTTON_2_3
public static final int BUTTON_1_2_3
| Method Detail |
public void destroy()
destroy cleans up the native mouse interface.
public int getButtonIndex(java.lang.String buttonName)
getButtonIndex gets the button code for a given button
name.
buttonName - the name to get the code for.
public boolean isButtonDown(int buttonCode)
isButtonDown returns true if a given button is pressed,
false if it is not pressed.
buttonCode - the button code to check.
public java.lang.String getButtonName(int buttonIndex)
getButtonName gets the button name for a given button
code.
buttonIndex - the code to get the name for.
public boolean isCreated()
isCreated returns true if the mouse input is created,
false otherwise.
public void poll()
poll updates the mouse.
public int getWheelDelta()
getWheelDelta gets the change in the mouse wheel.
public int getXDelta()
getXDelta gets the change along the x axis.
public int getYDelta()
getYDelta gets the change along the y axis.
public int getXAbsolute()
getXAbsolute gets the absolute x axis value.
public int getYAbsolute()
getYAbsolute gets the absolute y axis value.
public void updateState()
updateState updates the mouse state.
public void setCursorVisible(boolean v)
setCursorVisible sets the visiblity of the hardware cursor.
v - true turns the cursor on false turns it offpublic boolean isCursorVisible()
isCursorVisible
public MouseButtonStateType getButtonState()
public MouseButtonStateType getPreviousButtonState()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||