synergynetframework.mtinput
Interface IMultiTouchInputSource

All Known Implementing Classes:
AbstractDirectMultiTouchSimulator, AbstractMultiTouchSimulator, AWTMouseMultiTouchInput, DataPlaybackInput, JMEDirectSimulator, JMETUIOSimulator, LuminMultiTouchInput, TUIOMultiTouchInput, Win7TouchInput

public interface IMultiTouchInputSource

Generic type for multi-touch input services. Allows for the registration and de-registration of listeners to multi-touch events, as defined in IMultiTouchInputListener. Has the capability of setting a coordinate system, and determining the sensitivity of clicking behaviour. Services must be started, and/or stopped.

Author:
dcs0ah1

Method Summary
 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 setClickSensitivity(long time, float distance)
          Determines whether two successive cursor add/remove events constitute a 'click'.
 void unregisterMultiTouchEventListener(IMultiTouchEventListener listener)
          Stops the listener from receiving multi-touch events.
 void update(float tpf)
          Update.
 

Method Detail

registerMultiTouchEventListener

void registerMultiTouchEventListener(IMultiTouchEventListener listener)
Register the listener to receive multi-touch events, as defined in IMultiTouchInputListener.

Parameters:
listener - the listener

registerMultiTouchEventListener

void registerMultiTouchEventListener(IMultiTouchEventListener listener,
                                     int index)
Register multi touch event listener.

Parameters:
listener - the listener
index - the index

setClickSensitivity

void setClickSensitivity(long time,
                         float distance)
Determines whether two successive cursor add/remove events constitute a 'click'. Determines how close together in both time (in milliseconds) and space (in coordinate mode distance).

Parameters:
time - in milliseconds
distance - in coordinate space

unregisterMultiTouchEventListener

void unregisterMultiTouchEventListener(IMultiTouchEventListener listener)
Stops the listener from receiving multi-touch events.

Parameters:
listener - the listener

update

void update(float tpf)
            throws MultiTouchInputException
Update.

Parameters:
tpf - the tpf
Throws:
MultiTouchInputException - the multi touch input exception