mirror of
https://github.com/DeeJanuz/frametop.git
synced 2026-10-06 01:00:06 +02:00
Add a Global input switch to the Controllers page
SteamVR's "Enable global input from overlays (Experimental)" could only be turned on from the settings app: its notice, with the button, hid once the setting was on. It's now a switch, and the notice shows only when buttons are mapped and the setting is off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0d50efec45
commit
ed3c360f0d
2 files changed
+11
-11
No files matched your search
+10
-10
@@ -357,22 +357,22 @@ Kirigami.ApplicationWindow {
|
||||
}
|
||||
Kirigami.InlineMessage {
|
||||
Layout.fillWidth: true
|
||||
visible: cpage.status.helper && !cpage.status.global
|
||||
visible: cpage.status.helper && !cpage.status.global && backend.controllerMappings.length > 0
|
||||
type: Kirigami.MessageType.Warning
|
||||
text: "SteamVR's \"Enable global input from overlays (Experimental)\" is off. Without it the "
|
||||
+ "buttons only reach Frametop when nothing else has focus, if at all."
|
||||
actions: [
|
||||
Kirigami.Action {
|
||||
text: "Turn it on"
|
||||
icon.name: "dialog-ok-apply"
|
||||
onTriggered: backend.setGlobalInput(true)
|
||||
}
|
||||
]
|
||||
text: "Global input is off, so the mapped buttons only reach Frametop when nothing else has "
|
||||
+ "focus, if at all."
|
||||
}
|
||||
|
||||
Kirigami.FormLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
Controls.Switch {
|
||||
Kirigami.FormData.label: "Global input:"
|
||||
text: "SteamVR's \"Enable global input from overlays (Experimental)\", which mapped buttons need"
|
||||
checked: cpage.status.global
|
||||
enabled: cpage.status.helper
|
||||
onToggled: backend.setGlobalInput(checked)
|
||||
}
|
||||
Controls.Switch {
|
||||
Kirigami.FormData.label: "In games:"
|
||||
text: "Mapped buttons work while a game is running too (the game loses them)"
|
||||
|
||||
Reference in new issue
Block a user