public class TripleFingerSimCursor extends AbstractSimCursor
KEY_CONTROL, KEY_SHIFT, KEY_SPACE, MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE, MOUSE_BUTTON_RIGHT| Constructor and Description |
|---|
TripleFingerSimCursor(IMultiTouchSimulator simulator,
int id1,
int id2,
int id3)
Instantiates a new triple finger sim cursor.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Point2D.Float |
getCentralPoint()
Gets the central point.
|
java.awt.geom.Point2D.Float |
getFirstCursorPosition()
Gets the first cursor position.
|
int |
getIDForCursor1()
Gets the ID for cursor1.
|
int |
getIDForCursor2()
Gets the ID for cursor2.
|
multiplicity3.input.simulator.TripleFingerSimCursor.TripleFingerMode |
getMode()
Gets the mode.
|
float |
getMouseX()
Gets the mouse x.
|
float |
getMouseY()
Gets the mouse y.
|
java.awt.geom.Point2D.Float |
getSecondCursorPosition()
Gets the second cursor position.
|
void |
keyPressed(java.lang.String key)
Key pressed.
|
void |
keyReleased(java.lang.String key)
Key released.
|
void |
mouseDragged(float x,
float y,
int button)
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 buttonNumber)
Mouse released.
|
public TripleFingerSimCursor(IMultiTouchSimulator simulator, int id1, int id2, int id3)
simulator - the simulatorid1 - the id1id2 - the id2id3 - the id3public java.awt.geom.Point2D.Float getCentralPoint()
public java.awt.geom.Point2D.Float getFirstCursorPosition()
public int getIDForCursor1()
public int getIDForCursor2()
public multiplicity3.input.simulator.TripleFingerSimCursor.TripleFingerMode getMode()
public float getMouseX()
public float getMouseY()
public java.awt.geom.Point2D.Float getSecondCursorPosition()
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 button)
AbstractSimCursormouseDragged in class AbstractSimCursorx - the xy - the ybutton - 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 buttonNumber)
AbstractSimCursormouseReleased in class AbstractSimCursorx - the xy - the ybuttonNumber - the button number