HostInterface: Notify host when controller types change

This commit is contained in:
Connor McLaughlin
2020-02-16 00:14:44 +09:00
parent b0c846388e
commit 5f3be68028
6 changed files with 27 additions and 0 deletions

View File

@ -189,6 +189,14 @@ void SDLHostInterface::OnSystemDestroyed()
HostInterface::OnSystemDestroyed();
}
void SDLHostInterface::OnControllerTypeChanged(u32 slot)
{
HostInterface::OnControllerTypeChanged(slot);
UpdateKeyboardControllerMapping();
UpdateControllerControllerMapping();
}
void SDLHostInterface::SaveSettings()
{
SDLSettingsInterface si(GetSettingsFileName().c_str());

View File

@ -37,6 +37,7 @@ protected:
void OnSystemCreated() override;
void OnSystemPaused(bool paused) override;
void OnSystemDestroyed();
void OnControllerTypeChanged(u32 slot) override;
private:
enum class KeyboardControllerAction