mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 14:00:08 +00:00
Improve gamepad navigation on settings page
This commit is contained in:
1 parent
97fb30cdf1
commit
65c21f3392
4 files changed
+25
-40
No files matched your search
@@ -25,11 +25,13 @@ Flickable {
|
||||
}
|
||||
|
||||
StackView.onActivated: {
|
||||
SdlGamepadKeyNavigation.setSettingsMode(true)
|
||||
// This enables Tab and BackTab based navigation rather than arrow keys.
|
||||
// It is required to shift focus between controls on the settings page.
|
||||
SdlGamepadKeyNavigation.setUiNavMode(true)
|
||||
}
|
||||
|
||||
StackView.onDeactivating: {
|
||||
SdlGamepadKeyNavigation.setSettingsMode(false)
|
||||
SdlGamepadKeyNavigation.setUiNavMode(false)
|
||||
|
||||
// Save the prefs so the Session can observe the changes
|
||||
StreamingPreferences.save()
|
||||
|
||||
Reference in new issue
Block a user