option to disable jiggler

This commit is contained in:
Maxim Devaev
2023-10-26 08:28:18 +03:00
parent aec6727020
commit 7bb5531100
8 changed files with 58 additions and 21 deletions

View File

@@ -350,7 +350,7 @@
</div>
</td>
</tr>
<tr>
<tr class="feature-disabled" id="hid-jiggler">
<td>Mouse jiggler:</td>
<td align="right">
<div class="switch-box">

View File

@@ -103,7 +103,7 @@ li(id="system-dropdown" class="right")
table(class="kv")
tr(id="hid-connect" class="feature-disabled")
+menu_switch_notable("hid-connect-switch", "Connect HID to Server", true, true)
tr
tr(id="hid-jiggler" class="feature-disabled")
+menu_switch_notable("hid-jiggler-switch", "Mouse jiggler", false, false)
tr
+menu_switch_notable("hid-mute-switch", "Mute HID input events", true, false)

View File

@@ -133,7 +133,8 @@ export function Hid(__getGeometry, __recorder) {
let has_relative_squash = false;
if (state) {
$("hid-jiggler-switch").checked = !!state.jiggler.enabled;
tools.feature.setEnabled($("hid-jiggler"), state.jiggler.enabled);
$("hid-jiggler-switch").checked = state.jiggler.active;
}
if (state && state.online) {
let keyboard_outputs = state.keyboard.outputs.available;