summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/hid.js
diff options
context:
space:
mode:
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;