{"id":"window.multi--CreateNativeKeyboardRecord","name":"CreateNativeKeyboardRecord","owner":"yeho","package":"window.multi","kind":"function","signature":"external CreateNativeKeyboardRecord(text windowId, int sequence, int physicalCode, text logicalKey, text modifiers, bool repeated, int timestampMicroseconds, text deviceId, text source) returns nativeKeyboardRecord","description":"Create native keyboard 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":"physicalCode","type":"int","description":"Supply physical code as int."},{"name":"logicalKey","type":"text","description":"Supply logical key as text."},{"name":"modifiers","type":"text","description":"Supply modifiers as text."},{"name":"repeated","type":"bool","description":"Supply repeated as bool."},{"name":"timestampMicroseconds","type":"int","description":"Supply timestamp microseconds as int."},{"name":"deviceId","type":"text","description":"Supply device id as text."},{"name":"source","type":"text","description":"Supply source as text."}],"returns":"nativeKeyboardRecord","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":227,"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 CreateNativeKeyboardRecord","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 physicalCode = 1\ntext logicalKey = \"logical Key\"\ntext modifiers = \"modifiers\"\nbool repeated = true\nint timestampMicroseconds = 1\ntext deviceId = \"device Id\"\ntext source = \"example\"\nnativeKeyboardRecord result = CreateNativeKeyboardRecord(windowId, sequence, physicalCode, logicalKey, modifiers, repeated, timestampMicroseconds, deviceId, source)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.window_multi__createnativekeyboardrecord\"\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":"ded8bc6f264a6ad3ec3626c404bf8b7086dc9db485e3e65e8a73360497981097","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=window.multi--CreateNativeKeyboardRecord","json":"https://demonhunterlabs.com/reference/items/window.multi--CreateNativeKeyboardRecord.json","markdown":"https://demonhunterlabs.com/reference/text/window.multi--CreateNativeKeyboardRecord.md"}
