Skip to main content

PointerDevice

Classes

PointerDevice

Abstracts Mouse and Touch interfaces as single "pointer" device.

Members

tap : Signal.<Vector2, (MouseEvent|TouchEvent)>

Functions

observeTap(up, down, move, [maxDistance], [maxDelay], signal)
observeDrag(up, down, move, dragStart, dragEnd, drag)
readPositionFromMouseEvent(result, event, source)

tap : Signal.<Vector2, (MouseEvent|TouchEvent)>

Kind: global variable

observeTap(up, down, move, [maxDistance], [maxDelay], signal)

Kind: global function

ParamTypeDescription
upSignal
downSignal
moveSignal
[maxDistance]numberin pixels
[maxDelay]numberMaximum delay between down and up events in seconds
signalSignal

observeTap~active : Map.<number, LocationalInteractionMetadata>

Kind: inner constant of observeTap

observeTap~reset(id)

Kind: inner method of observeTap

ParamType
idnumber

observeTap~handleUp(position, event)

Kind: inner method of observeTap

ParamType
positionVector2
eventPointerEvent

observeTap~handleMove(position, event)

Kind: inner method of observeTap

ParamType
positionVector2
eventPointerEvent

observeTap~handleDown(position, event)

Kind: inner method of observeTap

ParamType
positionVector2
eventPointerEvent

observeDrag(up, down, move, dragStart, dragEnd, drag)

Kind: global function

ParamType
upSignal
downSignal
moveSignal
dragStartSignal
dragEndSignal
dragSignal

observeDrag~noDrag(position)

Kind: inner method of observeDrag

ParamType
positionVector2

readPositionFromMouseEvent(result, event, source)

Kind: global function

ParamType
resultVector2
eventMouseEvent | Touch
sourceElement