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
Param | Type | Description |
---|---|---|
up | Signal | |
down | Signal | |
move | Signal | |
[maxDistance] | number | in pixels |
[maxDelay] | number | Maximum delay between down and up events in seconds |
signal | Signal |
- observeTap(up, down, move, [maxDistance], [maxDelay], signal)
- ~active :
Map.<number, LocationalInteractionMetadata>
- ~reset(id)
- ~handleUp(position, event)
- ~handleMove(position, event)
- ~handleDown(position, event)
- ~active :
observeTap~active : Map.<number, LocationalInteractionMetadata>
Kind: inner constant of observeTap
observeTap~reset(id)
Kind: inner method of observeTap
Param | Type |
---|---|
id | number |
observeTap~handleUp(position, event)
Kind: inner method of observeTap
Param | Type |
---|---|
position | Vector2 |
event | PointerEvent |
observeTap~handleMove(position, event)
Kind: inner method of observeTap
Param | Type |
---|---|
position | Vector2 |
event | PointerEvent |
observeTap~handleDown(position, event)
Kind: inner method of observeTap
Param | Type |
---|---|
position | Vector2 |
event | PointerEvent |
observeDrag(up, down, move, dragStart, dragEnd, drag)
Kind: global function
Param | Type |
---|---|
up | Signal |
down | Signal |
move | Signal |
dragStart | Signal |
dragEnd | Signal |
drag | Signal |
observeDrag~noDrag(position)
Kind: inner method of observeDrag
Param | Type |
---|---|
position | Vector2 |
readPositionFromMouseEvent(result, event, source)
Kind: global function
Param | Type |
---|---|
result | Vector2 |
event | MouseEvent | Touch |
source | Element |