summaryrefslogtreecommitdiff
path: root/kvmd/web/js/hid.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-07-28 13:23:27 +0300
committerDevaev Maxim <[email protected]>2018-07-28 13:23:27 +0300
commit01e5a8caeeeba2772acf5f888278e891aea09608 (patch)
treecad2c19d5ff7a9f086b3078069c4e483bcbacde4 /kvmd/web/js/hid.js
parentc3939214bf07742b2e5a5c27d89dcd42dc94cb4a (diff)
interactive hid leds
Diffstat (limited to 'kvmd/web/js/hid.js')
-rw-r--r--kvmd/web/js/hid.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/kvmd/web/js/hid.js b/kvmd/web/js/hid.js
index 5b0b1a0d..a8a5d653 100644
--- a/kvmd/web/js/hid.js
+++ b/kvmd/web/js/hid.js
@@ -8,14 +8,19 @@ var hid = new function() {
this.init = function() {
keyboard.init();
mouse.init();
- }
+ };
+
+ this.updateLeds = function() {
+ keyboard.updateLeds();
+ mouse.updateLeds();
+ };
this.releaseAll = function() {
keyboard.releaseAll();
};
this.emitShortcut = function(...codes) {
- console.log(codes);
+ tools.debug("Emitted keys:", codes);
var delay = 0;
[[codes, true], [codes.slice().reverse(), false]].forEach(function(op) {
var [op_codes, state] = op;