input.observe
@1Key and pointer state, and binding a hotkey the overlay lets the user rebind.
Observe is the whole of it: there is no call here that moves a pointer or presses a key, and that is not an omission. The host owns input routing across a whole press and release, because a key down delivered to the game and a key up captured by a newly opened overlay leaves the game believing the key is held.
Calls
A key by name, as a person writes one: "F8", "H", "Ctrl+R". Names rather than scan codes, because a scan code is a keyboard layout a mod should not have an opinion about.
Where the cursor is, in screen points, and whether the game has it captured. A mod reading a position while the game holds the cursor is reading one nobody is moving.
Called cursor rather than pointer because the surface refuses a mod-visible call that names a pointer, and it is right to: a reader who has to work out which kind of pointer is meant is a reader who can get it wrong.
Asks for a hotkey the user can rebind in the overlay. The binding belongs to the user, so this says what the mod wants it for and the host decides what it ends up as.
Events
id: str, key: strErrors
A call that returns Result crosses as a status: 0 is success, and the others are these errors, by their index in the capability.
UnsupportedUnknownBinding