public class SingleFingerSimCursor extends AbstractSimCursor
KEY_CONTROL, KEY_SHIFT, KEY_SPACE, MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE, MOUSE_BUTTON_RIGHT| Constructor and Description |
|---|
SingleFingerSimCursor(IMultiTouchSimulator simulator,
int id)
Instantiates a new single finger sim cursor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMouseX()
Gets the mouse x.
|
int |
getMouseY()
Gets the mouse y.
|
float |
getX()
Gets the x.
|
float |
getY()
Gets the y.
|
void |
keyPressed(java.lang.String key)
Key pressed.
|
void |
keyReleased(java.lang.String key)
Key released.
|
void |
mouseDragged(float x,
float y,
int buttonNumber)
Mouse dragged.
|
void |
mouseMoved(float x,
float y)
Mouse moved.
|
void |
mousePressed(float x,
float y,
int button)
Mouse pressed.
|
void |
mouseReleased(float x,
float y,
int button)
Mouse released.
|
public SingleFingerSimCursor(IMultiTouchSimulator simulator, int id)
simulator - the simulatorid - the idpublic int getMouseX()
public int getMouseY()
public float getX()
public float getY()
public void keyPressed(java.lang.String key)
AbstractSimCursorkeyPressed in class AbstractSimCursorkey - the keypublic void keyReleased(java.lang.String key)
AbstractSimCursorkeyReleased in class AbstractSimCursorkey - the keypublic void mouseDragged(float x,
float y,
int buttonNumber)
AbstractSimCursormouseDragged in class AbstractSimCursorx - the xy - the ybuttonNumber - the button numberpublic void mouseMoved(float x,
float y)
AbstractSimCursormouseMoved in class AbstractSimCursorx - the xy - the ypublic void mousePressed(float x,
float y,
int button)
AbstractSimCursormousePressed in class AbstractSimCursorx - the xy - the ybutton - the button numberpublic void mouseReleased(float x,
float y,
int button)
AbstractSimCursormouseReleased in class AbstractSimCursorx - the xy - the ybutton - the button number