UI: Cleanup common message handling.

Most of it can just be handled by the common parent classes.
This commit is contained in:
Unknown W. Brackets
2017-12-02 11:55:06 -08:00
parent e945ad6ac1
commit f1bd54148b
9 changed files with 19 additions and 79 deletions
-10
View File
@@ -252,16 +252,6 @@ void ControlMappingScreen::CreateViews() {
}
}
void ControlMappingScreen::sendMessage(const char *message, const char *value) {
// Always call the base class method first to handle the most common messages.
UIDialogScreenWithBackground::sendMessage(message, value);
if (!strcmp(message, "settings") && screenManager()->topScreen() == this) {
UpdateUIState(UISTATE_MENU);
screenManager()->push(new GameSettingsScreen(""));
}
}
UI::EventReturn ControlMappingScreen::OnClearMapping(UI::EventParams &params) {
KeyMap::g_controllerMap.clear();
RecreateViews();