mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 05:50:49 +00:00
Refactor SdlGamepadKeyNavigation to avoid multiple reinitializations of SDL
This commit is contained in:
1 parent
03c0be0720
commit
d2cff86c97
7 files changed
+27
-45
No files matched your search
@@ -29,17 +29,12 @@ Flickable {
|
||||
id: prefs
|
||||
}
|
||||
|
||||
SdlGamepadKeyNavigation {
|
||||
id: gamepadKeyNav
|
||||
}
|
||||
|
||||
StackView.onActivated: {
|
||||
gamepadKeyNav.setSettingsMode(true)
|
||||
gamepadKeyNav.enable()
|
||||
SdlGamepadKeyNavigation.setSettingsMode(true)
|
||||
}
|
||||
|
||||
StackView.onDeactivating: {
|
||||
gamepadKeyNav.disable()
|
||||
SdlGamepadKeyNavigation.setSettingsMode(false)
|
||||
prefs.save()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user