|
||||||||||
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 MouseInput
MouseInput.destroy()
public int getButtonIndex(java.lang.String buttonName)
getButtonIndex
returns 0;
getButtonIndex
in class MouseInput
buttonName
- 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 MouseInput
buttonIndex
- 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 MouseInput
buttonCode
- 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 MouseInput
MouseInput.getWheelDelta()
public int getXDelta()
getXDelta
retrieves the change of the x position, if any. (Dummymouses can'T move)
getXDelta
in class MouseInput
MouseInput.getXDelta()
public int getYDelta()
getYDelta
retrieves the change of the y position, if any. (Dummymouses can'T move)
getYDelta
in class MouseInput
MouseInput.getYDelta()
public int getXAbsolute()
getXAbsolute
gets the absolute x axis value (Always 0 for Dummymouse).
getXAbsolute
in class MouseInput
MouseInput.getXAbsolute()
public int getYAbsolute()
getYAbsolute
gets the absolute y axis value.(Always 0 for Dummymouse)
getYAbsolute
in class MouseInput
MouseInput.getYAbsolute()
public void update()
updateState
updates the mouse state, in out case it does nothing at all.
update
in class MouseInput
MouseInput.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 MouseInput
v
- 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 MouseInput
MouseInput.isCursorVisible()
public void setHardwareCursor(java.net.URL file)
MouseInput
setHardwareCursor
sets the image to use for the hardware cursor.
setHardwareCursor
in class MouseInput
file
- URL to cursor imagepublic void setHardwareCursor(java.net.URL file, int xHotspot, int yHotspot)
setHardwareCursor
in class MouseInput
url
- to imagefilexHotspot
- from image leftyHotspot
- from image bottompublic void setHardwareCursor(java.net.URL file, Image[] images, int[] delays, int xHotspot, int yHotspot)
setHardwareCursor
in class MouseInput
file
- 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 MouseInput
public int getButtonCount()
getButtonCount
in class MouseInput
public void setCursorPosition(int x, int y)
setCursorPosition
in class MouseInput
public void clear()
clear
in class MouseInput
public void clearButton(int buttonCode)
clearButton
in class MouseInput
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |