summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/hid.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-05-09 07:59:00 +0300
committerDevaev Maxim <[email protected]>2021-05-09 07:59:00 +0300
commit42601dae58c3a4fad9df153f3cf87a62b724b535 (patch)
tree52e83e9231d3f570abc03a531ba8bfebf7235060 /web/share/js/kvm/hid.js
parent8aa0162ba2ea5f847a64677c63412c7f580ac8d8 (diff)
refactoring
Diffstat (limited to 'web/share/js/kvm/hid.js')
-rw-r--r--web/share/js/kvm/hid.js6
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;