Watch
1
0
Fork
You've already forked souveraine
0

usb: make the HID controller doorway honest

This commit is contained in:
Fimeg 2026-08-07 17:36:25 -04:00
commit 78d6743776

View file

@ -291,7 +291,9 @@ Scope {
Layout.fillWidth: true Layout.fillWidth: true
icon: "keyboard" icon: "keyboard"
title: "USB HID Injection" title: "USB HID Injection"
detail: "Let this screen become the other machine's hands" detail: UsbState.mode === "hid"
? "Keyboard and pointer link armed"
: "Let this screen become the other machine's hands"
badge: UsbState.mode === "hid" ? "active" badge: UsbState.mode === "hid" ? "active"
: UsbState.hasMode("hid_mode") ? "wired" : "building" : UsbState.hasMode("hid_mode") ? "wired" : "building"
inset: 10 inset: 10
@ -313,11 +315,11 @@ Scope {
SheetLocal.PowerOptionRow { SheetLocal.PowerOptionRow {
Layout.fillWidth: true Layout.fillWidth: true
icon: "keyboard_mouse" icon: "cable"
title: "Keyboard + pointer" title: "USB control link"
detail: UsbState.mode === "hid" detail: UsbState.mode === "hid"
? "Active · tap to restore developer USB" ? "Armed · tap to restore developer USB"
: "Tap to arm boot keyboard, pointer and NCM" : "Expose keyboard, pointer and developer network"
badge: UsbState.busy ? "switching" badge: UsbState.busy ? "switching"
: UsbState.mode === "hid" ? "active" : UsbState.mode === "hid" ? "active"
: UsbState.hasMode("hid_mode") ? "ready" : "not installed" : UsbState.hasMode("hid_mode") ? "ready" : "not installed"
@ -329,19 +331,10 @@ Scope {
SheetLocal.PowerOptionRow { SheetLocal.PowerOptionRow {
Layout.fillWidth: true Layout.fillWidth: true
icon: "text_fields" icon: "keyboard_mouse"
title: "Type text…" title: "Keyboard & trackpad"
detail: "A guarded text payload for the attached host" detail: "Typing, pointer and guarded quick actions"
badge: "planned" badge: "app next"
inset: 28
}
SheetLocal.PowerOptionRow {
Layout.fillWidth: true
icon: "security"
title: "Secure attention"
detail: "Hold to send Ctrl + Alt + Delete"
badge: "planned"
inset: 28 inset: 28
} }
} }