{"id":"window.multi--CreateNativePointerRecord","name":"CreateNativePointerRecord","owner":"yeho","package":"window.multi","kind":"function","signature":"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","description":"Create native pointer record from the supplied values.","context":"Describe multiple windows, input events, lifecycle, and capabilities with typed records.","parameters":[{"name":"windowId","type":"text","description":"Supply window id as text."},{"name":"sequence","type":"int","description":"Supply sequence as int."},{"name":"pointerId","type":"int","description":"Supply pointer id as int."},{"name":"pointerType","type":"text","description":"Supply pointer type as text."},{"name":"buttons","type":"text","description":"Supply buttons as text."},{"name":"pressurePermille","type":"int","description":"Supply pressure permille as int."},{"name":"wheelX","type":"int","description":"Supply wheel x as int."},{"name":"wheelY","type":"int","description":"Supply wheel y as int."},{"name":"localX","type":"int","description":"Supply local x as int."},{"name":"localY","type":"int","description":"Supply local y as int."},{"name":"surfaceX","type":"int","description":"Supply surface x as int."},{"name":"surfaceY","type":"int","description":"Supply surface y as int."},{"name":"timestampMicroseconds","type":"int","description":"Supply timestamp microseconds as int."},{"name":"captured","type":"bool","description":"Supply captured as bool."},{"name":"captureLost","type":"bool","description":"Supply capture lost as bool."},{"name":"cancelled","type":"bool","description":"Supply cancelled as bool."}],"returns":"nativePointerRecord","members":[],"tags":["cpu","function","multi","source-example","window","window.multi","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/window/multi/00-contracts.yh","line":232,"sha256":"434678db31e43543673b57de71bfacefcb1fd4eaaccfeb99e92fd5d2816ec492"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use CreateNativePointerRecord","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using window.multi\n\n// Describe multiple windows, input events, lifecycle, and capabilities with typed records.\ntext windowId = \"window Id\"\nint sequence = 1\nint pointerId = 1\ntext pointerType = \"pointer Type\"\ntext buttons = \"buttons\"\nint pressurePermille = 1\nint wheelX = 1\nint wheelY = 1\nint localX = 1\nint localY = 1\nint surfaceX = 1\nint surfaceY = 1\nint timestampMicroseconds = 1\nbool captured = true\nbool captureLost = true\nbool cancelled = true\nnativePointerRecord result = CreateNativePointerRecord(windowId, sequence, pointerId, pointerType, buttons, pressurePermille, wheelX, wheelY, localX, localY, surfaceX, surfaceY, timestampMicroseconds, captured, captureLost, cancelled)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.window_multi__createnativepointerrecord\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"window.multi\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/window/multi\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"e27ab9f61456127be6e9a13d206a2fd91962e9a7cb5dc101d0b4dd150116650d","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=window.multi--CreateNativePointerRecord","json":"https://demonhunterlabs.com/reference/items/window.multi--CreateNativePointerRecord.json","markdown":"https://demonhunterlabs.com/reference/text/window.multi--CreateNativePointerRecord.md"}
