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)
AbstractSimCursor
keyPressed
in class AbstractSimCursor
key
- the keypublic void keyReleased(java.lang.String key)
AbstractSimCursor
keyReleased
in class AbstractSimCursor
key
- the keypublic void mouseDragged(float x, float y, int buttonNumber)
AbstractSimCursor
mouseDragged
in class AbstractSimCursor
x
- the xy
- the ybuttonNumber
- the button numberpublic void mouseMoved(float x, float y)
AbstractSimCursor
mouseMoved
in class AbstractSimCursor
x
- the xy
- the ypublic void mousePressed(float x, float y, int button)
AbstractSimCursor
mousePressed
in class AbstractSimCursor
x
- the xy
- the ybutton
- the button numberpublic void mouseReleased(float x, float y, int button)
AbstractSimCursor
mouseReleased
in class AbstractSimCursor
x
- the xy
- the ybutton
- the button number