Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 804 Bytes

File metadata and controls

50 lines (29 loc) · 804 Bytes
title PointerEvent

Represents a pointer interaction event containing position and pointer id.

Fields

position

The position of the pointer in local coordinates.

id

The unique identifier for the pointer.

type

The type of event (pointerDown, pointerUp, click, pointerEnter, pointerMove, etc).

Constructors

new

{/* new: (id: number, position: Vector) -> PointerEvent */}

```lua new(id: number, position: Vector) -> PointerEvent ```

Methods

hit

{/* hit: (self: PointerEvent, isTranslucent:boolean?) -> () */}

```lua hit(isTranslucent: boolean?) -> () ```

Marks the event as handled. If isTranslucent is true, the event may continue to propagate through translucent hit targets.