|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is meant for input devices that are pointer or mouse like in their operation. This means that the device has a cursor visible on the screen (is be implemented by the engine implementation if not provided by the OS) and has from one to many buttons.
Method Summary | |
int |
getButtonDownCount(int buttonId)
Returns the number of times the button has been stroken since last reading (after last call made to wasButtonDown or getButtonDownCount methods with the same button id number). |
int |
getX()
Returns the X-coordinate of the pointer devices current location. |
int |
getY()
Returns the Y-coordinate of the pointer devices current location. |
boolean |
isButtonDown(int buttonId)
Returns true if the button is currently down. |
boolean |
wasButtonDown(int buttonId)
Returns true if the button was briefly kept down after last reading of the buttons state (after last call made to wasButtonDown or getButtonDownCount methods with the same button id number). |
Method Detail |
public int getX()
public int getY()
public boolean isButtonDown(int buttonId)
buttonId
- The number of the button we want to query.public boolean wasButtonDown(int buttonId)
buttonId
- The number of the button we want to query.public int getButtonDownCount(int buttonId)
buttonId
- The number of the button we want to query.
|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |