Skip to content

TouchManager

TouchManager

Constructors

new TouchManager()

new TouchManager(pEventSystem, pTarget): TouchManager

Parameters

pEventSystem: EventSystem

pTarget: DisplayObject

Returns

TouchManager

Source

src/input/TouchManager.ts:51

Accessors

onPinch

set onPinch(pValue): void

Sets the callback to be fired when a pinch is updated

Parameters

pValue: undefined | (pDelta) => void

Source

src/input/TouchManager.ts:106


onPinchEnd

set onPinchEnd(pValue): void

Sets the callback to be fired when a pinch ends

Parameters

pValue: undefined | (pDelta) => void

Source

src/input/TouchManager.ts:122


onPinchStart

set onPinchStart(pValue): void

Sets the callback to be fired when a pinch starts

Parameters

pValue: undefined | (pDelta) => void

Source

src/input/TouchManager.ts:114


onSwipe

set onSwipe(pValue): void

Sets the callback to be fired when a swipe is updated

Parameters

pValue: undefined | (pDelta) => void

Source

src/input/TouchManager.ts:81


onSwipeEnd

set onSwipeEnd(pValue): void

Sets the callback to be fired when a swipe ends

Parameters

pValue: undefined | (pDelta) => void

Source

src/input/TouchManager.ts:98


onSwipeStart

set onSwipeStart(pValue): void

Sets the callback to be fired when a swipe starts

Parameters

pValue: undefined | (pDelta) => void

Source

src/input/TouchManager.ts:90


pinchThreshhold

set pinchThreshhold(pValue): void

Sets the minimum magnitude of a pinch. Pinches smaller than this value will be ignored

Parameters

pValue: number

Source

src/input/TouchManager.ts:138


swipeThreshhold

set swipeThreshhold(pValue): void

Sets the minimum magnitude of a swipe. Swipes smaller than this value will be ignored

Parameters

pValue: number

Source

src/input/TouchManager.ts:130

Methods

destroy()

destroy(): void

destroy

Returns

void

Source

src/input/TouchManager.ts:154


setCoordinateSystem()

setCoordinateSystem(pGesture, pCoord): void

Sets what type of CoordinateSystem to use when determining positions for the specified Gesture

Parameters

pGesture: GestureType

pCoord: CoordinateSystem

Returns

void

Source

src/input/TouchManager.ts:147