mouse support

This commit is contained in:
Devaev Maxim
2018-08-01 17:31:23 +03:00
parent cb8e5efbc7
commit 9a5c583f80
9 changed files with 230 additions and 73 deletions

View File

@@ -27,8 +27,10 @@ var keyboard = new function() {
};
this.setSocket = function(ws) {
keyboard.releaseAll();
__ws = ws;
if (ws !== __ws) {
keyboard.releaseAll();
__ws = ws;
}
keyboard.updateLeds();
};