|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.input.lwjgl.LWJGLMouseInput
LWJGLMouseInput handles mouse input via the LWJGL Input API.
| Field Summary |
| Fields inherited from interface com.jme.input.MouseInput |
BUTTON_1, BUTTON_1_2, BUTTON_1_2_3, BUTTON_1_3, BUTTON_2, BUTTON_2_3, BUTTON_3 |
| Constructor Summary | |
LWJGLMouseInput()
Constructor creates a new LWJGLMouseInput object. |
|
| Method Summary | |
void |
destroy()
destroy cleans up the native mouse reference. |
int |
getButtonIndex(java.lang.String buttonName)
getButtonIndex returns the index of a given button name. |
java.lang.String |
getButtonName(int buttonIndex)
getButtonName returns the name of a given button index. |
MouseButtonStateType |
getButtonState()
|
MouseButtonStateType |
getButtonType()
|
MouseButtonStateType |
getPreviousButtonState()
|
int |
getWheelDelta()
getWheelDelta retrieves the change of the mouse wheel,
if any. |
int |
getXAbsolute()
getXAbsolute gets the absolute x axis value. |
int |
getXDelta()
getXDelta retrieves the change of the x position, if any. |
int |
getYAbsolute()
getYAbsolute gets the absolute y axis value. |
int |
getYDelta()
getYDelta retrieves the change of the y position, if any. |
boolean |
isButtonDown(int buttonCode)
isButtonDown tests if a given button is pressed or not. |
boolean |
isCreated()
isCreated returns false if the mouse is created, false
otherwise. |
boolean |
isCursorVisible()
isCursorVisible Returns true if a cursor is currently bound. |
void |
poll()
poll gets the current state of the mouse. |
void |
setCursorVisible(boolean v)
setCursorVisible sets the visiblity of the hardware cursor. |
void |
updateState()
updateState updates the mouse state. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LWJGLMouseInput()
LWJGLMouseInput object. A call
to the LWJGL creation method is made, if any problems occur during
this creation, it is logged.
| Method Detail |
public void destroy()
destroy cleans up the native mouse reference.
destroy in interface MouseInputMouseInput.destroy()public int getButtonIndex(java.lang.String buttonName)
getButtonIndex returns the index of a given button name.
getButtonIndex in interface MouseInputbuttonName - the name to get the code for.
MouseInput.getButtonIndex(java.lang.String)public java.lang.String getButtonName(int buttonIndex)
getButtonName returns the name of a given button index.
getButtonName in interface MouseInputbuttonIndex - the code to get the name for.
MouseInput.getButtonName(int)public boolean isButtonDown(int buttonCode)
isButtonDown tests if a given button is pressed or not.
isButtonDown in interface MouseInputbuttonCode - the button code to check.
MouseInput.isButtonDown(int)public boolean isCreated()
isCreated returns false if the mouse is created, false
otherwise.
isCreated in interface MouseInputMouseInput.isCreated()public void poll()
poll gets the current state of the mouse.
poll in interface MouseInputMouseInput.poll()public int getWheelDelta()
getWheelDelta retrieves the change of the mouse wheel,
if any.
getWheelDelta in interface MouseInputMouseInput.getWheelDelta()public int getXDelta()
getXDelta retrieves the change of the x position, if any.
getXDelta in interface MouseInputMouseInput.getXDelta()public int getYDelta()
getYDelta retrieves the change of the y position, if any.
getYDelta in interface MouseInputMouseInput.getYDelta()public int getXAbsolute()
getXAbsolute gets the absolute x axis value.
getXAbsolute in interface MouseInputMouseInput.getXAbsolute()public int getYAbsolute()
getYAbsolute gets the absolute y axis value.
getYAbsolute in interface MouseInputMouseInput.getYAbsolute()public void updateState()
updateState updates the mouse state.
updateState in interface MouseInputMouseInput.updateState()public void setCursorVisible(boolean v)
setCursorVisible sets the visiblity of the hardware cursor.
setCursorVisible in interface MouseInputv - true turns the cursor on false turns it offMouseInput.setCursorVisible(boolean)public boolean isCursorVisible()
isCursorVisible Returns true if a cursor is currently bound.
isCursorVisible in interface MouseInputMouseInput.isCursorVisible()public MouseButtonStateType getButtonType()
public MouseButtonStateType getButtonState()
getButtonState in interface MouseInputMouseInput.getButtonState()public MouseButtonStateType getPreviousButtonState()
getPreviousButtonState in interface MouseInputMouseInput.getPreviousButtonState()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||