Packagepq.multitouch
Classpublic class TouchOptions

The TouchOptions class contains multi-touch lib settings.



Public Properties
 PropertyDefined by
   clickDistThreshold : Number = 40
[static] Distance threshold in pixel to decide whether touchDown event and its first following touchUp event can trigger a touchClick event.
TouchOptions
   clickFrameThreshold : Number = 20
[static] Time threshold in frame to decide whether touchDown event and its first following touchUp event can trigger a touchClick event.
TouchOptions
   isDoubleClickEnabled : Boolean = false
[static] Enables TOUCH_DOUBLECLICK event.
TouchOptions
   moveDistThreshold : Number = 0
[static] Distance threshold in pixel to decide whether a touch move action from hardware triggers a TOUCH_MOVE event.
TouchOptions
   maxTouchCount : uint = 32
[static] The maximum touch count that is allowed by the multi-touch lib.
TouchOptions
   validTouchBound : Rectangle = new Rectangle(0,0,flash.system.Capabilities.screenResolutionX,flash.system.Capabilities.screenResolutionY)
[static] The valid rectangle area for touch input in screen resolution.
TouchOptions
Property detail
clickDistThresholdproperty 
public static var clickDistThreshold:Number= 50

Distance threshold in pixel to decide whether touchDown event and its first following touchUp event within a term of time( specified by clickFrameThreshold ) can trigger a touchClick event. If the distance of touchDown position and touchUp position < clickDistThreshold, a touchClick event will be dispatched; otherwise, no touchClick event is triggered.

clickFrameThresholdproperty 
public static var clickFrameThreshold:Number= 10

Time threshold in frame to decide whether touchDown event and its first following touchUp event within a certain distance( specified by clickDistThreshold ) can trigger a touchClick event. If the frame between touchDown and touchUp < clickFrameThreshold, a touchClick event will be dispatched; otherwise, no touchClick event is triggered.

isDoubleClickEnabledproperty
public static var isDoubleClickEnabled:Boolean= false

Enables TOUCH_DOUBLECLICK event. As default, you get two TOUCH_CLICK event when you double click the touch screen. If isDoubleClickEnabled == true, you will get a TOUCH_CLICK event following with a TOUCH_DOUBLECLICK event.

moveDistThreshold property 
public static var moveDistThreshold:Number= 0

Distance threshold in pixel to decide whether a touch move action from hardware triggers a TOUCH_MOVE event.

maxTouchCountproperty 
public static var maxTouchCount:uint= 32

The maximum touch count that is allowed by the multi-touch lib.

validTouchBoundproperty 
public static var validTouchBound:Rectangle= new Rectangle(0,0,flash.system.Capabilities.screenResolutionX,flash.system.Capabilities.screenResolutionY)

The valid rectangle area for touch input in screen resolution.