window.multi · function ·

CreateNativePointerRecord

Create native pointer record from the supplied values.

cpufunctionmultisource-examplewindowwindow.multiyeho

Describe multiple windows, input events, lifecycle, and capabilities with typed records.

external CreateNativePointerRecord(text windowId, int sequence, int pointerId, text pointerType, text buttons, int pressurePermille, int wheelX, int wheelY, int localX, int localY, int surfaceX, int surfaceY, int timestampMicroseconds, bool captured, bool captureLost, bool cancelled) returns nativePointerRecord

Status: source-declared

Parameters

text windowId
Supply window id as text.
int sequence
Supply sequence as int.
int pointerId
Supply pointer id as int.
text pointerType
Supply pointer type as text.
text buttons
Supply buttons as text.
int pressurePermille
Supply pressure permille as int.
int wheelX
Supply wheel x as int.
int wheelY
Supply wheel y as int.
int localX
Supply local x as int.
int localY
Supply local y as int.
int surfaceX
Supply surface x as int.
int surfaceY
Supply surface y as int.
int timestampMicroseconds
Supply timestamp microseconds as int.
bool captured
Supply captured as bool.
bool captureLost
Supply capture lost as bool.
bool cancelled
Supply cancelled as bool.

Use CreateNativePointerRecord

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using window.multi

// Describe multiple windows, input events, lifecycle, and capabilities with typed records.
text windowId = "window Id"
int sequence = 1
int pointerId = 1
text pointerType = "pointer Type"
text buttons = "buttons"
int pressurePermille = 1
int wheelX = 1
int wheelY = 1
int localX = 1
int localY = 1
int surfaceX = 1
int surfaceY = 1
int timestampMicroseconds = 1
bool captured = true
bool captureLost = true
bool cancelled = true
nativePointerRecord result = CreateNativePointerRecord(windowId, sequence, pointerId, pointerType, buttons, pressurePermille, wheelX, wheelY, localX, localY, surfaceX, surfaceY, timestampMicroseconds, captured, captureLost, cancelled)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.window_multi__createnativepointerrecord"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "window.multi"
version = "0.1.0"
path = "../../../yeho/packages/window/multi"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/window/multi/00-contracts.yh:232