|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.input.Input
com.jme.input.MouseInput
com.jme.input.dummy.DummyMouseInput
public class DummyMouseInput
Mouse input handler that is a Dummy input.
Cursor,
Mouse| Field Summary |
|---|
| Fields inherited from class com.jme.input.MouseInput |
|---|
INPUT_AWT, INPUT_LWJGL, listeners |
| Constructor Summary | |
|---|---|
protected |
DummyMouseInput()
Constructor creates a new DummyMouseInput object. |
| Method Summary | |
|---|---|
void |
clear()
|
void |
clearButton(int buttonCode)
|
void |
destroy()
destroy does nothing at all |
int |
getButtonCount()
We return the values for a simple standartmouse here. |
int |
getButtonIndex(java.lang.String buttonName)
getButtonIndex returns 0; |
java.lang.String |
getButtonName(int buttonIndex)
getButtonName returns the name of a given button index. |
int |
getWheelDelta()
getWheelDelta retrieves the change of the mouse wheel,
if any. |
int |
getWheelRotation()
|
int |
getXAbsolute()
getXAbsolute gets the absolute x axis value (Always 0 for Dummymouse). |
int |
getXDelta()
getXDelta retrieves the change of the x position, if any. |
int |
getYAbsolute()
getYAbsolute gets the absolute y axis value.(Always 0 for Dummymouse) |
int |
getYDelta()
getYDelta retrieves the change of the y position, if any. |
boolean |
isButtonDown(int buttonCode)
isButtonDown returns false, the Dummymouse can't be pressed. |
boolean |
isCursorVisible()
isCursorVisible Returns false, can you see a DummyMouse?. |
void |
setCursorPosition(int x,
int y)
|
void |
setCursorVisible(boolean v)
setCursorVisible sets the visiblity of the hardware
cursor, since it's a Dummymouse we don't do anything!. |
void |
setHardwareCursor(java.net.URL file)
setHardwareCursor sets the image to use for the hardware cursor. |
void |
setHardwareCursor(java.net.URL file,
Image[] images,
int[] delays,
int xHotspot,
int yHotspot)
This method will set an animated harware cursor, Dummymouse ignores it |
void |
setHardwareCursor(java.net.URL file,
int xHotspot,
int yHotspot)
Loads and sets a hardware cursor, Dummymouse ignores it |
void |
update()
updateState updates the mouse state, in out case it does nothing at all. |
| Methods inherited from class com.jme.input.MouseInput |
|---|
addListener, containsListener, destroyIfInitalized, get, getListeners, getProvider, isInited, removeListener, removeListeners, setProvider, setProvider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DummyMouseInput()
DummyMouseInput object.
| Method Detail |
|---|
public void destroy()
destroy does nothing at all
destroy in class MouseInputMouseInput.destroy()public int getButtonIndex(java.lang.String buttonName)
getButtonIndex returns 0;
getButtonIndex in class 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 class MouseInputbuttonIndex - the code to get the name for.
MouseInput.getButtonName(int)public boolean isButtonDown(int buttonCode)
isButtonDown returns false, the Dummymouse can't be pressed.
isButtonDown in class MouseInputbuttonCode - the button code to check.
MouseInput.isButtonDown(int)public int getWheelDelta()
getWheelDelta retrieves the change of the mouse wheel,
if any. (There can't be any in ase of a DummyMouse)
getWheelDelta in class MouseInputMouseInput.getWheelDelta()public int getXDelta()
getXDelta retrieves the change of the x position, if any. (Dummymouses can'T move)
getXDelta in class MouseInputMouseInput.getXDelta()public int getYDelta()
getYDelta retrieves the change of the y position, if any. (Dummymouses can'T move)
getYDelta in class MouseInputMouseInput.getYDelta()public int getXAbsolute()
getXAbsolute gets the absolute x axis value (Always 0 for Dummymouse).
getXAbsolute in class MouseInputMouseInput.getXAbsolute()public int getYAbsolute()
getYAbsolute gets the absolute y axis value.(Always 0 for Dummymouse)
getYAbsolute in class MouseInputMouseInput.getYAbsolute()public void update()
updateState updates the mouse state, in out case it does nothing at all.
update in class MouseInputMouseInput.update()public void setCursorVisible(boolean v)
setCursorVisible sets the visiblity of the hardware
cursor, since it's a Dummymouse we don't do anything!.
setCursorVisible in class MouseInputv - true turns the cursor on false turns it offMouseInput.setCursorVisible(boolean)public boolean isCursorVisible()
isCursorVisible Returns false, can you see a DummyMouse?.
isCursorVisible in class MouseInputMouseInput.isCursorVisible()public void setHardwareCursor(java.net.URL file)
MouseInputsetHardwareCursor sets the image to use for the hardware cursor.
setHardwareCursor in class MouseInputfile - URL to cursor image
public void setHardwareCursor(java.net.URL file,
int xHotspot,
int yHotspot)
setHardwareCursor in class MouseInputurl - to imagefilexHotspot - from image leftyHotspot - from image bottom
public void setHardwareCursor(java.net.URL file,
Image[] images,
int[] delays,
int xHotspot,
int yHotspot)
setHardwareCursor in class MouseInputfile - in this method file is only used as a key for cursor cashingimages - the animation framesdelays - delays between changing each framexHotspot - from image leftyHotspot - from image bottompublic int getWheelRotation()
getWheelRotation in class MouseInputpublic int getButtonCount()
getButtonCount in class MouseInput
public void setCursorPosition(int x,
int y)
setCursorPosition in class MouseInputpublic void clear()
clear in class MouseInputpublic void clearButton(int buttonCode)
clearButton in class MouseInput
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||