|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Used for accessing keyboard and mouse at anytime.
IRender3D
Method Summary | |
int |
getMouseDragX()
Gets the mouse x position relative to this DirectInput component. |
int |
getMouseDragY()
Gets the mouse y position relative to this DirectInput component. |
int |
getMouseX()
Gets the mouse x position relative to this DirectInput component. |
int |
getMouseY()
Gets the mouse y position relative to this DirectInput component. |
boolean |
isKey(int num)
Gets a key state |
boolean |
isKey(int num,
long maxTime)
Gets a key state within a specified ms range |
boolean |
isMouseB1()
Gets the mouse first button state. |
boolean |
isMouseB1Click(long time)
Gets the mouse first button click state within the given time range. |
boolean |
isMouseB2()
Gets the mouse second button state. |
boolean |
isMouseB2Click(long time)
Gets the mouse second button click state within the given time range. |
boolean |
isMouseB3()
Gets the mouse third button state. |
boolean |
isMouseB3Click(long time)
Gets the mouse third button click state within the given time range. |
boolean |
isMouseDrag()
Gets the mouse dragging state. |
Method Detail |
public int getMouseX()
public int getMouseY()
public boolean isMouseB1()
public boolean isMouseB2()
public boolean isMouseB3()
public boolean isMouseB1Click(long time)
time
- time range in ms
public boolean isMouseB2Click(long time)
time
- time range in ms
public boolean isMouseB3Click(long time)
time
- time range in ms
public boolean isMouseDrag()
public boolean isKey(int num)
num
- keycode of the key to return state.
public boolean isKey(int num, long maxTime)
num
- keycode of the key to return state.maxTime
- time range in ms.
public int getMouseDragX()
public int getMouseDragY()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |