Improve input event handling. Can now map volume keys on Android without issues.

This commit is contained in:
Henrik Rydgard committed 2014-06-15 13:04:59 +02:00
1 parent 7febcd5d91
commit e3bbf26731
14 files changed
+80 -58

No files matched your search

+3 -2
View File
@@ -60,11 +60,12 @@ void InstallZipScreen::CreateViews() {
rightColumnItems->Add(new CheckBox(&deleteZipFile_, iz->T("Delete ZIP file")));
}
void InstallZipScreen::key(const KeyInput &key) {
bool InstallZipScreen::key(const KeyInput &key) {
// Ignore all key presses during installation to avoid user escape
if (!g_GameManager.IsInstallInProgress()) {
UIScreen::key(key);
return UIScreen::key(key);
}
return false;
}
UI::EventReturn InstallZipScreen::OnInstall(UI::EventParams &params) {