From f160fb561fa5bdcc7e35d35d16f66cc9150a0859 Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Mon, 20 Sep 2021 01:22:48 +0100 Subject: Implement macro recording for gpio (#65) --- web/share/js/kvm/hid.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'web/share/js/kvm/hid.js') diff --git a/web/share/js/kvm/hid.js b/web/share/js/kvm/hid.js index c53c039c..e5048d0a 100644 --- a/web/share/js/kvm/hid.js +++ b/web/share/js/kvm/hid.js @@ -26,22 +26,19 @@ import {tools, $, $$$} from "../tools.js"; import {wm} from "../wm.js"; -import {Recorder} from "./recorder.js"; import {Keyboard} from "./keyboard.js"; import {Mouse} from "./mouse.js"; -export function Hid(__getResolution) { +export function Hid(__getResolution, __recorder) { var self = this; /************************************************************************/ - var __recorder = null; var __keyboard = null; var __mouse = null; var __init__ = function() { - __recorder = new Recorder(); __keyboard = new Keyboard(__recorder.recordWsEvent); __mouse = new Mouse(__getResolution, __recorder.recordWsEvent); @@ -98,7 +95,6 @@ export function Hid(__getResolution) { if (!ws) { self.setState(null); } - __recorder.setSocket(ws); __keyboard.setSocket(ws); __mouse.setSocket(ws); }; -- cgit v1.2.3