binary keyboard protocol

This commit is contained in:
Maxim Devaev
2023-06-07 05:12:22 +03:00
parent 9c694da00c
commit 9f98a2f701
6 changed files with 68 additions and 35 deletions

View File

@@ -134,7 +134,7 @@ export function Keyboard(__recordWsEvent) {
"event": {"key": code, "state": state},
};
if (__ws && !$("hid-mute-switch").checked) {
__ws.send(JSON.stringify(event));
__ws.sendHidEvent(event);
}
__recordWsEvent(event);
};