mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 13:15:45 -04:00
HostInterface: Notify host when controller types change
This commit is contained in:
@ -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());
|
||||
|
@ -37,6 +37,7 @@ protected:
|
||||
void OnSystemCreated() override;
|
||||
void OnSystemPaused(bool paused) override;
|
||||
void OnSystemDestroyed();
|
||||
void OnControllerTypeChanged(u32 slot) override;
|
||||
|
||||
private:
|
||||
enum class KeyboardControllerAction
|
||||
|
Reference in New Issue
Block a user