Skip to content

Class: Pointer

Pointer describes a pointer event with additional information around cameras and position within the element the game is running in.

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

+ new Pointer(event: PointerEvent, elementPosition: Vector, cameraInfos: PointerCameraInfo[]): Pointer

Parameters:

Name Type
event PointerEvent
elementPosition Vector
cameraInfos PointerCameraInfo[]

Returns: Pointer

Properties

cameraInfos

cameraInfos: PointerCameraInfo[]

Relevant camera information around the pointer event.


elementPosition

elementPosition: Vector

Position within the game HTML element, from bottom left (-1, -1) to top right (1, 1).


event

event: PointerEvent

Standard PointerEvent dispatched from JS.

Methods

Free

Free(): void

Free releases an object or it's constituent parts back into any available object pools.

Returns: void

Implementation of: IFreeable