summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/hid.js
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-08-17 15:01:04 +0300
committerMaxim Devaev <[email protected]>2021-08-17 15:01:04 +0300
commit586c7d20778e1e30ea802f489a71c2d2dd0b18f6 (patch)
tree4cfa698e07142f9cadef94fc3b24d5f510be5b82 /web/share/js/kvm/hid.js
parentb7cf7b4523c28bed43346bb593add7ff4bc993e1 (diff)
pikvm/pikvm#281: adjustable relative mouse sensitivity
Diffstat (limited to 'web/share/js/kvm/hid.js')
-rw-r--r--web/share/js/kvm/hid.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/share/js/kvm/hid.js b/web/share/js/kvm/hid.js
index 545a712d..bf508e0b 100644
--- a/web/share/js/kvm/hid.js
+++ b/web/share/js/kvm/hid.js
@@ -157,6 +157,7 @@ export function Hid(__getResolution) {
tools.feature.setEnabled($("hid-outputs-keyboard"), keyboard_outputs.length);
tools.feature.setEnabled($("hid-outputs-mouse"), mouse_outputs.length);
tools.feature.setEnabled($("hid-mouse-squash"), has_relative);
+ tools.feature.setEnabled($("hid-mouse-sens"), has_relative);
tools.feature.setEnabled($("hid-connect"), (state.connected !== null));
$("hid-connect-switch").checked = !!state.connected;
}
@@ -164,6 +165,7 @@ export function Hid(__getResolution) {
tools.radio.setEnabled("hid-outputs-keyboard-radio", (state && state.online && !state.busy));
tools.radio.setEnabled("hid-outputs-mouse-radio", (state && state.online && !state.busy));
tools.el.setEnabled($("hid-mouse-squash-switch"), (has_relative_squash && !state.busy));
+ tools.el.setEnabled($("hid-mouse-sens-slider"), (has_relative_squash && !state.busy));
tools.el.setEnabled($("hid-connect-switch"), (state && state.online && !state.busy));
if (state) {