mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -06:00
InputCommon: Refactor away InputConfig::LoadConfig's switch case
By having getters for this information, other code that needs access to the same information can call the getters instead of duplicating the information.
This commit is contained in:
@ -312,7 +312,8 @@ void FreeLookController::UpdateInput(CameraControllerInput* camera_controller)
|
||||
|
||||
namespace FreeLook
|
||||
{
|
||||
static InputConfig s_config("FreeLookController", _trans("FreeLook"), "FreeLookController");
|
||||
static InputConfig s_config("FreeLookController", _trans("FreeLook"), "FreeLookController",
|
||||
InputConfig::InputClass::GC);
|
||||
InputConfig* GetInputConfig()
|
||||
{
|
||||
return &s_config;
|
||||
@ -336,12 +337,12 @@ void Initialize()
|
||||
|
||||
FreeLook::GetConfig().Refresh();
|
||||
|
||||
s_config.LoadConfig(InputConfig::InputClass::GC);
|
||||
s_config.LoadConfig();
|
||||
}
|
||||
|
||||
void LoadInputConfig()
|
||||
{
|
||||
s_config.LoadConfig(InputConfig::InputClass::GC);
|
||||
s_config.LoadConfig();
|
||||
}
|
||||
|
||||
bool IsInitialized()
|
||||
|
Reference in New Issue
Block a user