Documentation
On this page

Interface · Core and Composition

PointerEvent

Normalized native pointer event in local device-independent coordinates.

@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43

Members

alt

readonly alt: boolean

Whether Alt is pressed.

Type: boolean

button

readonly button: PointerButton

Button whose state changed, or none for movement/cancellation.

Type: PointerButton

buttons

readonly buttons: number

Standard button bitmask: left=1, right=2, middle=4, x1=8, x2=16.

Type: number

ctrl

readonly ctrl: boolean

Whether Control is pressed.

Type: boolean

meta

readonly meta: boolean

Whether the platform meta key is pressed.

Type: boolean

pointerId

readonly pointerId: number

Stable native pointer identifier for the duration of the gesture.

Type: number

pointerType

readonly pointerType: PointerType

Device category that produced the event.

Type: PointerType

pressure

readonly pressure: number

Normalized pressure from zero to one.

Type: number

shift

readonly shift: boolean

Whether Shift is pressed.

Type: boolean

x

readonly x: number

Local horizontal position in device-independent pixels.

Type: number

y

readonly y: number

Local vertical position in device-independent pixels.

Type: number

Source

SharpTS.Gui.Sdk/GuiPackage/runtime-types.ts:58 at SharpTS revision 7c6010104a43c34d80e9d44704cf179bc4f5b8e0.