Implement macro recording for gpio (#65)

This commit is contained in:
Shantur Rathore
2021-09-20 01:22:48 +01:00
committed by GitHub
parent e38c65f181
commit f160fb561f
5 changed files with 51 additions and 12 deletions

View File

@@ -217,7 +217,7 @@ export function Recorder() {
}
}, event.event.text, "text/plain");
return;
} else if (["key", "mouse_button", "mouse_move", "mouse_wheel"].includes(event.event_type)) {
} else if (["key", "mouse_button", "mouse_move", "mouse_wheel", "gpio_switch", "gpio_pulse"].includes(event.event_type)) {
__ws.send(JSON.stringify(event));
}
index += 1;