public class TUIOMultiTouchInput extends java.lang.Object implements IMultiTouchInputSource, TUIO.TuioListener
| Constructor and Description |
|---|
TUIOMultiTouchInput()
Instantiates a new TUIO multi touch input.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTuioCursor(TUIO.TuioCursor tuioCursor)
Unfortunately, we don't have positional information at this point so we
need to flag the object as being new, and rely on it being subsequently
updated in order for that to decide whether to inform about being new or
just updated.
|
void |
addTuioObject(TUIO.TuioObject tuioObject) |
void |
endListening()
Stop the listener from running
|
void |
refresh(TUIO.TuioTime tuioTime) |
void |
registerMultiTouchEventListener(IMultiTouchEventListener listener)
Register the listener to receive multi-touch events, as defined in
IMultiTouchInputListener.
|
void |
registerMultiTouchEventListener(IMultiTouchEventListener listener,
int index)
Register multi touch event listener.
|
void |
removeTuioCursor(TUIO.TuioCursor tuioCursor) |
void |
removeTuioObject(TUIO.TuioObject tuioObject) |
boolean |
requiresMouseDisplay()
Should the mouse be shown or hidden?
|
void |
setClickSensitivity(long time,
float distance)
Determines whether two successive cursor add/remove events constitute a
'click'.
|
void |
start()
Start.
|
void |
stop()
Stop.
|
void |
unregisterMultiTouchEventListener(IMultiTouchEventListener listener)
Stops the listener from receiving multi-touch events.
|
void |
update(float tpf)
Some sources run in a separate thread.
|
void |
updateTuioCursor(TUIO.TuioCursor tuioCursor) |
void |
updateTuioObject(TUIO.TuioObject tuioObject) |
public TUIOMultiTouchInput()
public void addTuioCursor(TUIO.TuioCursor tuioCursor)
addTuioCursor in interface TUIO.TuioListenerpublic void addTuioObject(TUIO.TuioObject tuioObject)
addTuioObject in interface TUIO.TuioListenerpublic void endListening()
IMultiTouchInputSourceendListening in interface IMultiTouchInputSourcepublic void refresh(TUIO.TuioTime tuioTime)
refresh in interface TUIO.TuioListenerpublic void registerMultiTouchEventListener(IMultiTouchEventListener listener)
IMultiTouchInputSourceregisterMultiTouchEventListener in interface IMultiTouchInputSourcepublic void registerMultiTouchEventListener(IMultiTouchEventListener listener, int index)
IMultiTouchInputSourceregisterMultiTouchEventListener in interface IMultiTouchInputSourcelistener - the listenerindex - the indexpublic void removeTuioCursor(TUIO.TuioCursor tuioCursor)
removeTuioCursor in interface TUIO.TuioListenerpublic void removeTuioObject(TUIO.TuioObject tuioObject)
removeTuioObject in interface TUIO.TuioListenerpublic boolean requiresMouseDisplay()
IMultiTouchInputSourcerequiresMouseDisplay in interface IMultiTouchInputSourcepublic void setClickSensitivity(long time,
float distance)
IMultiTouchInputSourcesetClickSensitivity in interface IMultiTouchInputSourcetime - in millisecondsdistance - in coordinate spacepublic void start()
public void stop()
public void unregisterMultiTouchEventListener(IMultiTouchEventListener listener)
IMultiTouchInputSourceunregisterMultiTouchEventListener in interface IMultiTouchInputSourcepublic void update(float tpf)
IMultiTouchInputSourceupdate in interface IMultiTouchInputSourcepublic void updateTuioCursor(TUIO.TuioCursor tuioCursor)
updateTuioCursor in interface TUIO.TuioListenerpublic void updateTuioObject(TUIO.TuioObject tuioObject)
updateTuioObject in interface TUIO.TuioListener