Updated Windows Agents
This commit is contained in:
parent
1076383fc8
commit
7a71cacb0d
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -529,13 +529,13 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
|
|||
obj.xxMouseWheel = function (e) { if (obj.State == 3) { obj.SendMouseMsg(obj.KeyAction.SCROLL, e); return false; } return true; }
|
||||
obj.xxKeyUp = function (e) {
|
||||
if ((e.key != 'Dead') && (obj.State == 3)) {
|
||||
if ((e.key.length == 1) && (obj.remoteKeyMap == false)) { obj.SendKeyUnicode(obj.KeyAction.UP, e.key.charCodeAt(0)); } else { obj.SendKeyMsg(obj.KeyAction.UP, e); }
|
||||
if ((e.key.length == 1) && ((obj.remoteKeyMap == false) || (obj.debugmode > 0))) { obj.SendKeyUnicode(obj.KeyAction.UP, e.key.charCodeAt(0)); } else { obj.SendKeyMsg(obj.KeyAction.UP, e); }
|
||||
}
|
||||
if (e.preventDefault) e.preventDefault(); if (e.stopPropagation) e.stopPropagation(); return false;
|
||||
}
|
||||
obj.xxKeyDown = function (e) {
|
||||
if ((e.key != 'Dead') && (obj.State == 3)) {
|
||||
if ((e.key.length == 1) && (obj.remoteKeyMap == false)) { obj.SendKeyUnicode(obj.KeyAction.DOWN, e.key.charCodeAt(0)); } else { obj.SendKeyMsg(obj.KeyAction.DOWN, e); }
|
||||
if ((e.key.length == 1) && ((obj.remoteKeyMap == false) || (obj.debugmode > 0))) { obj.SendKeyUnicode(obj.KeyAction.DOWN, e.key.charCodeAt(0)); } else { obj.SendKeyMsg(obj.KeyAction.DOWN, e); }
|
||||
}
|
||||
if (e.preventDefault) e.preventDefault(); if (e.stopPropagation) e.stopPropagation(); return false;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4011,6 +4011,7 @@
|
|||
//desk.onConsoleMessageChange = function () { console.log('CONSOLEMSG:', desk.consoleMessage); }
|
||||
desk.m.CompressionLevel = multidesktopsettings.quality;
|
||||
desk.m.ScalingLevel = multidesktopsettings.scaling;
|
||||
desk.m.remoteKeyMap = ((node.agent.id < 1) || (node.agent.id > 4)); // Removing remote keyboard map is only supported on windows.
|
||||
if (multidesktopsettings.framerate) { desk.m.FrameRateTimer = multidesktopsettings.framerate; }
|
||||
if (multidesktopsettings.swapmouse) { desk.m.SwapMouse = multidesktopsettings.swapmouse; }
|
||||
//desk.m.onDisplayinfo = deskDisplayInfo;
|
||||
|
@ -6957,6 +6958,7 @@
|
|||
if (desktopsettings.swapmouse) { desktop.m.SwapMouse = desktopsettings.swapmouse; }
|
||||
desktop.m.onDisplayinfo = deskDisplayInfo;
|
||||
desktop.m.onScreenSizeChange = deskAdjust;
|
||||
desktop.m.remoteKeyMap = ((desktopNode.agent.id < 1) || (desktopNode.agent.id > 4)); // Removing remote keyboard map is only supported on windows.
|
||||
desktop.Start(desktopNode._id);
|
||||
desktop.latency.callback = function(ms) { console.log('latency', ms); updateSessionTime(); };
|
||||
desktop.contype = 1;
|
||||
|
|
Loading…
Reference in New Issue