diff options
Diffstat (limited to 'kvmd/web/js/hid.js')
-rw-r--r-- | kvmd/web/js/hid.js | 9 |
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; |