diff options
author | Devaev Maxim <[email protected]> | 2021-05-09 07:59:00 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-05-09 07:59:00 +0300 |
commit | 42601dae58c3a4fad9df153f3cf87a62b724b535 (patch) | |
tree | 52e83e9231d3f570abc03a531ba8bfebf7235060 /web/share/js/kvm/hid.js | |
parent | 8aa0162ba2ea5f847a64677c63412c7f580ac8d8 (diff) |
refactoring
Diffstat (limited to 'web/share/js/kvm/hid.js')
-rw-r--r-- | web/share/js/kvm/hid.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/share/js/kvm/hid.js b/web/share/js/kvm/hid.js index f4f2b589..bfda9ae1 100644 --- a/web/share/js/kvm/hid.js +++ b/web/share/js/kvm/hid.js @@ -31,11 +31,13 @@ import {Keyboard} from "./keyboard.js"; import {Mouse} from "./mouse.js"; -export function Hid() { +export function Hid(get_resolution_callback) { var self = this; /************************************************************************/ + var __get_resolution_callback = get_resolution_callback; + var __recorder = null; var __keyboard = null; var __mouse = null; @@ -43,7 +45,7 @@ export function Hid() { var __init__ = function() { __recorder = new Recorder(); __keyboard = new Keyboard(__recorder.recordWsEvent); - __mouse = new Mouse(__recorder.recordWsEvent); + __mouse = new Mouse(__get_resolution_callback, __recorder.recordWsEvent); let hidden_attr = null; let visibility_change_attr = null; |