Qt: Add migration of old controller binds to new

This commit is contained in:
Connor McLaughlin
2022-11-18 17:14:39 +10:00
parent 4b1e54d74f
commit ae4366498e
3 changed files with 170 additions and 0 deletions

View File

@ -217,6 +217,9 @@ GenericInputBindingMapping GetGenericBindingMapping(const std::string_view& devi
/// Re-parses the config and registers all hotkey and pad bindings.
void ReloadBindings(SettingsInterface& si, SettingsInterface& binding_si);
/// Migrates any bindings from the pre-InputManager configuration.
bool MigrateBindings(SettingsInterface& si);
/// Re-parses the sources part of the config and initializes any backends.
void ReloadSources(SettingsInterface& si, std::unique_lock<std::mutex>& settings_lock);