Keyboard Button
- TypeScript
- C#
type KeyboardButtonPayload = {
key: string
isDown: boolean
}
struct KeyboardButtonPayload
{
public string Key;
public bool? IsDown;
}
This data is sent when the host presses or releases a keyboard button.
The key
field is one of the JavaScript KeyboardEvent.key
values.