HostInterface: Notify host when controller types change

This commit is contained in:
Connor McLaughlin committed 2020-02-16 00:14:44 +09:00
1 parent b0c846388e
commit 5f3be68028
6 files changed
+27

No files matched your search

@@ -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());
+1
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