|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.input.lwjgl.LwjglMouseInput
public class LwjglMouseInput
Field Summary |
---|
Fields inherited from interface com.jme3.input.MouseInput |
---|
AXIS_WHEEL, AXIS_X, AXIS_Y, BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT |
Constructor Summary | |
---|---|
LwjglMouseInput(LwjglAbstractDisplay context)
|
Method Summary | |
---|---|
void |
destroy()
Ceases listening to events from the device. |
int |
getButtonCount()
Returns the number of buttons the mouse has. |
long |
getInputTimeNanos()
|
void |
initialize()
Initializes the native side to listen into events from the device. |
boolean |
isInitialized()
|
void |
setCursorVisible(boolean visible)
Set whether the mouse cursor should be visible or not. |
void |
setInputListener(RawInputListener listener)
Sets the input listener to receive events from this device. |
void |
setNativeCursor(JmeCursor jmeCursor)
Sets the cursor to use. |
void |
update()
Queries the device for input. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LwjglMouseInput(LwjglAbstractDisplay context)
Method Detail |
---|
public void initialize()
Input
initialize
in interface Input
public boolean isInitialized()
isInitialized
in interface Input
Input.initialize()
,
Input.destroy()
public int getButtonCount()
MouseInput
getButtonCount
in interface MouseInput
public void update()
Input
update
in interface Input
Input.setInputListener(com.jme3.input.RawInputListener)
public void destroy()
Input
destroy
in interface Input
public void setCursorVisible(boolean visible)
MouseInput
setCursorVisible
in interface MouseInput
visible
- Whether the mouse cursor should be visible or not.public void setInputListener(RawInputListener listener)
Input
setInputListener
in interface Input
public long getInputTimeNanos()
getInputTimeNanos
in interface Input
public void setNativeCursor(JmeCursor jmeCursor)
MouseInput
setNativeCursor
in interface MouseInput
jmeCursor
- The cursor to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |