public class JMETUIOSimulator extends AbstractMultiTouchSimulator
Constructor and Description |
---|
JMETUIOSimulator() |
Modifier and Type | Method and Description |
---|---|
void |
deleteCursor(int id,
float x,
float y)
Delete cursor.
|
void |
deleteTwoCursors(int id1,
float x1,
float y1,
int id2,
float x2,
float y2)
Delete two cursors.
|
void |
endListening()
Stop the listener from running
|
void |
newCursor(int id,
float x,
float y)
New cursor.
|
boolean |
requiresMouseDisplay()
Should the mouse be shown or hidden?
|
void |
start()
Start.
|
void |
stop()
Stop.
|
void |
update(float tpf)
Some sources run in a separate thread.
|
void |
updateCursor(int id,
float x,
float y)
Update cursor.
|
void |
updateTwoCursors(int id1,
float x,
float y,
int id2,
float x2,
float y2)
Update two cursors.
|
clearCursor, getCurrentCursor, getNewCursorID, keyPressed, keyReleased, mouseDragged, mouseMoved, mousePressed, mouseReleased, registerMultiTouchEventListener, registerMultiTouchEventListener, setClickSensitivity, unregisterMultiTouchEventListener
public void deleteCursor(int id, float x, float y)
IMultiTouchSimulator
deleteCursor
in interface IMultiTouchSimulator
deleteCursor
in class AbstractMultiTouchSimulator
id
- the idx
- the xy
- the ypublic void deleteTwoCursors(int id1, float x1, float y1, int id2, float x2, float y2)
IMultiTouchSimulator
deleteTwoCursors
in interface IMultiTouchSimulator
deleteTwoCursors
in class AbstractMultiTouchSimulator
id1
- the id1x1
- the xy1
- the yid2
- the id2x2
- the x2y2
- the y2public void endListening()
IMultiTouchInputSource
public void newCursor(int id, float x, float y)
IMultiTouchSimulator
newCursor
in interface IMultiTouchSimulator
newCursor
in class AbstractMultiTouchSimulator
id
- the idx
- the xy
- the ypublic boolean requiresMouseDisplay()
IMultiTouchInputSource
public void start()
public void stop()
public void update(float tpf)
IMultiTouchInputSource
public void updateCursor(int id, float x, float y)
IMultiTouchSimulator
updateCursor
in interface IMultiTouchSimulator
updateCursor
in class AbstractMultiTouchSimulator
id
- the idx
- the xy
- the ypublic void updateTwoCursors(int id1, float x, float y, int id2, float x2, float y2)
IMultiTouchSimulator
updateTwoCursors
in interface IMultiTouchSimulator
updateTwoCursors
in class AbstractMultiTouchSimulator
id1
- the id1x
- the xy
- the yid2
- the id2x2
- the x2y2
- the y2