mirror of
https://github.com/Ylianst/MeshCommander
synced 2025-12-06 06:03:20 +00:00
Added reverse mouse wheel option in KVM.
This commit is contained in:
@@ -929,6 +929,10 @@ var CreateAmtRemoteDesktop = function (divid, scrolldiv) {
|
|||||||
else if (typeof e.detail == 'number') { v = -1 * e.detail; }
|
else if (typeof e.detail == 'number') { v = -1 * e.detail; }
|
||||||
else if (typeof e.wheelDelta == 'number') { v = e.wheelDelta; }
|
else if (typeof e.wheelDelta == 'number') { v = e.wheelDelta; }
|
||||||
if (v == 0) return;
|
if (v == 0) return;
|
||||||
|
|
||||||
|
// Reverse mouse wheel if needed
|
||||||
|
if (obj.ReverseMouseWheel) { v = -1 * v; }
|
||||||
|
|
||||||
var tmpmask = obj.buttonmask;
|
var tmpmask = obj.buttonmask;
|
||||||
obj.buttonmask |= (1 << ((v > 0) ? 3 : 4));
|
obj.buttonmask |= (1 << ((v > 0) ? 3 : 4));
|
||||||
obj.mousemove(e, 1);
|
obj.mousemove(e, 1);
|
||||||
|
|||||||
@@ -1383,6 +1383,7 @@
|
|||||||
<label><input type="checkbox" id='d7showcad'>Show Ctrl-Alt-Del</label><br>
|
<label><input type="checkbox" id='d7showcad'>Show Ctrl-Alt-Del</label><br>
|
||||||
<label><input type="checkbox" id='d7limitFrameRate'>Limit Frame Rate</label><br>
|
<label><input type="checkbox" id='d7limitFrameRate'>Limit Frame Rate</label><br>
|
||||||
<label><input type="checkbox" id='d7noMouseRotate'>Don't Rotate Mouse</label><br>
|
<label><input type="checkbox" id='d7noMouseRotate'>Don't Rotate Mouse</label><br>
|
||||||
|
<label><input type="checkbox" id='d7kvmrmw'>Reverse Mouse Wheel</label><br>
|
||||||
</div>
|
</div>
|
||||||
<div>Other Settings</div>
|
<div>Other Settings</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -8760,6 +8761,7 @@
|
|||||||
// ###END###{DesktopInband}
|
// ###END###{DesktopInband}
|
||||||
desktop.m.frameRateDelay = ((desktopsettings.limitFrameRate == true)?200:0);
|
desktop.m.frameRateDelay = ((desktopsettings.limitFrameRate == true)?200:0);
|
||||||
desktop.m.noMouseRotate = desktopsettings.noMouseRotate;
|
desktop.m.noMouseRotate = desktopsettings.noMouseRotate;
|
||||||
|
desktop.m.ReverseMouseWheel = desktopsettings.reverseMouseWheel;
|
||||||
// ###BEGIN###{Mode-MeshCentral2}
|
// ###BEGIN###{Mode-MeshCentral2}
|
||||||
desktop.tlsv1only = amtstack.wsman.comm.tlsv1only;
|
desktop.tlsv1only = amtstack.wsman.comm.tlsv1only;
|
||||||
desktop.Start(currentMeshNode._id, 16994, '*', '*', 0);
|
desktop.Start(currentMeshNode._id, 16994, '*', '*', 0);
|
||||||
@@ -8946,6 +8948,7 @@
|
|||||||
desktopsettings.showcad = d7showcad.checked;
|
desktopsettings.showcad = d7showcad.checked;
|
||||||
desktopsettings.limitFrameRate = d7limitFrameRate.checked;
|
desktopsettings.limitFrameRate = d7limitFrameRate.checked;
|
||||||
desktopsettings.noMouseRotate = d7noMouseRotate.checked;
|
desktopsettings.noMouseRotate = d7noMouseRotate.checked;
|
||||||
|
desktopsettings.reverseMouseWheel = d7kvmrmw.checked;
|
||||||
// ###BEGIN###{DesktopInband}
|
// ###BEGIN###{DesktopInband}
|
||||||
desktopsettings.quality = d7bitmapquality.value;
|
desktopsettings.quality = d7bitmapquality.value;
|
||||||
desktopsettings.scaling = d7bitmapscaling.value;
|
desktopsettings.scaling = d7bitmapscaling.value;
|
||||||
@@ -8968,6 +8971,7 @@
|
|||||||
d7showcad.checked = desktopsettings.showcad;
|
d7showcad.checked = desktopsettings.showcad;
|
||||||
d7limitFrameRate.checked = desktopsettings.limitFrameRate;
|
d7limitFrameRate.checked = desktopsettings.limitFrameRate;
|
||||||
d7noMouseRotate.checked = desktopsettings.noMouseRotate;
|
d7noMouseRotate.checked = desktopsettings.noMouseRotate;
|
||||||
|
d7kvmrmw.checked = desktopsettings.reverseMouseWheel;
|
||||||
// ###BEGIN###{DesktopInband}
|
// ###BEGIN###{DesktopInband}
|
||||||
if (desktopsettings.quality) { d7bitmapquality.value = desktopsettings.quality; }
|
if (desktopsettings.quality) { d7bitmapquality.value = desktopsettings.quality; }
|
||||||
if (desktopsettings.scaling) { d7bitmapscaling.value = desktopsettings.scaling; }
|
if (desktopsettings.scaling) { d7bitmapscaling.value = desktopsettings.scaling; }
|
||||||
@@ -14011,8 +14015,8 @@
|
|||||||
function AddButton(v, f) { return '<input type=button value=\'' + v + '\' onclick=\'' + f + '\' style=margin:4px>'; }
|
function AddButton(v, f) { return '<input type=button value=\'' + v + '\' onclick=\'' + f + '\' style=margin:4px>'; }
|
||||||
function AddButton2(v, f, s) { return '<input type=button value=\'' + v + '\' onclick=\'' + f + '\' ' + s + '>'; }
|
function AddButton2(v, f, s) { return '<input type=button value=\'' + v + '\' onclick=\'' + f + '\' ' + s + '>'; }
|
||||||
function AddRefreshButton(f) { return '<input type=button name=refreshbtn value="' + "Refresh" + '" onclick=\'refreshButtons(false);' + f + '\' style=margin:4px ' + (refreshButtonsState==false?'disabled':'') + '>'; }
|
function AddRefreshButton(f) { return '<input type=button name=refreshbtn value="' + "Refresh" + '" onclick=\'refreshButtons(false);' + f + '\' style=margin:4px ' + (refreshButtonsState==false?'disabled':'') + '>'; }
|
||||||
function MoreStart() { return '<a style=cursor:pointer;color:blue id=morexxx1 onclick=QV(\"morexxx1\",false);QV(\"morexxx2\",true)>▼ More</a><div id=morexxx2 style=display:none><br><hr>'; };
|
function MoreStart() { return '<a style=cursor:pointer;color:blue id=morexxx1 onclick=QV(\"morexxx1\",false);QV(\"morexxx2\",true)>▼ ' + "More" + '</a><div id=morexxx2 style=display:none><br><hr>'; };
|
||||||
function MoreEnd() { return '<a style=cursor:pointer;color:blue onclick=QV(\"morexxx2\",false);QV(\"morexxx1\",true)>▲ Less</a></div>'; };
|
function MoreEnd() { return '<a style=cursor:pointer;color:blue onclick=QV(\"morexxx2\",false);QV(\"morexxx1\",true)>▲ ' + "Less" + '</a></div>'; };
|
||||||
function getSelectedOptions(sel) { var opts = [], opt; for (var i = 0, len = sel.options.length; i < len; i++) { opt = sel.options[i]; if (opt.selected) { opts.push(opt.value); } } return opts; }
|
function getSelectedOptions(sel) { var opts = [], opt; for (var i = 0, len = sel.options.length; i < len; i++) { opt = sel.options[i]; if (opt.selected) { opts.push(opt.value); } } return opts; }
|
||||||
function getInstance(x, y) { for (var i in x) { if (x[i]['InstanceID'] == y) return x[i]; } return null; }
|
function getInstance(x, y) { for (var i in x) { if (x[i]['InstanceID'] == y) return x[i]; } return null; }
|
||||||
function getItem(x, y, z) { for (var i in x) { if (x[i][y] == z) return x[i]; } return null; }
|
function getItem(x, y, z) { for (var i in x) { if (x[i][y] == z) return x[i]; } return null; }
|
||||||
|
|||||||
Reference in New Issue
Block a user