CommonHostInterface: Clear input map before changing interface

Should hopefully fix the crash when changing controller backends.
This commit is contained in:
Connor McLaughlin
2020-08-23 19:38:37 +10:00
parent 9254fc9e63
commit 5115c75f88
2 changed files with 12 additions and 5 deletions

View File

@ -217,6 +217,7 @@ protected:
bool HandleHostKeyEvent(HostKeyCode code, bool pressed);
bool HandleHostMouseEvent(HostMouseButton button, bool pressed);
void UpdateInputMap(SettingsInterface& si);
void ClearInputMap();
void AddControllerRumble(u32 controller_index, u32 num_motors, ControllerRumbleCallback callback);
void UpdateControllerRumble();