toggle UIA support

This commit is contained in:
KingKDot
2026-04-24 19:20:58 -05:00
parent b51c187c20
commit 98afc99d98
6 changed files with 44 additions and 5 deletions
+7
View File
@@ -73,12 +73,14 @@ import { checkFeatureAccess } from "./feature-gate.js";
const statusEl = document.getElementById("streamStatus");
const clipboardSyncCtrl = document.getElementById("clipboardSyncCtrl");
const dxgiCtrl = document.getElementById("dxgiCtrl");
const uiaCtrl = document.getElementById("uiaCtrl");
const hvncResolutionSelect = document.getElementById("hvncResolutionSelect");
function syncInputEnableState() {
if (mouseCtrl) sendCmd("hvnc_enable_mouse", { enabled: mouseCtrl.checked });
if (kbdCtrl) sendCmd("hvnc_enable_keyboard", { enabled: kbdCtrl.checked });
if (dxgiCtrl) sendCmd("hvnc_enable_dxgi", { enabled: dxgiCtrl.checked });
if (uiaCtrl) sendCmd("hvnc_enable_uia", { enabled: uiaCtrl.checked });
pushHvncResolution();
}
let activeClientId = clientId;
@@ -619,6 +621,11 @@ import { checkFeatureAccess } from "./feature-gate.js";
sendCmd("hvnc_enable_dxgi", { enabled: dxgiCtrl.checked });
});
}
if (uiaCtrl) {
uiaCtrl.addEventListener("change", function () {
sendCmd("hvnc_enable_uia", { enabled: uiaCtrl.checked });
});
}
function pushHvncResolution() {
if (hvncResolutionSelect) {