Zum Hauptinhalt springen

SCREEN_TOUCH_START

Description

Emits when the user initially touches the screen.

ecs.input.SCREEN_TOUCH_START.detail : { pointerId, position, target, start, change }

Event Properties

PropertyTypeDescription
pointerIdnumberA unique ID for the pointer provided by the browser
positionobjectThe screen position in pixels. ({x: number, y: number})
targetEidIf initial touch raycasts to an object, this will be the eid of the object, and as the pointer moves, the target will be the same as the initial target.
startobjectOn move/end, this will be the first position emitted in start. ({x: number, y: number})
changeobjectOn move, the delta of movement since the last event ({x: number, y: number})