Remove touch() return values from screen hierarchy

This commit is contained in:
Henrik Rydgård committed 2023-01-10 10:12:37 +01:00
1 parent fdfc4cbe40
commit a3a949f5e6
10 files changed
+18 -28

No files matched your search

+2 -5
View File
@@ -560,14 +560,14 @@ inline float clamp1(float x) {
return x;
}
bool EmuScreen::touch(const TouchInput &touch) {
void EmuScreen::touch(const TouchInput &touch) {
Core_NotifyActivity();
if (chatMenu_ && chatMenu_->GetVisibility() == UI::V_VISIBLE) {
// Avoid pressing touch button behind the chat
if (chatMenu_->Contains(touch.x, touch.y)) {
chatMenu_->Touch(touch);
return true;
return;
} else if ((touch.flags & TOUCH_DOWN) != 0) {
chatMenu_->Close();
if (chatButton_)
@@ -578,9 +578,6 @@ bool EmuScreen::touch(const TouchInput &touch) {
if (root_) {
root_->Touch(touch);
return true;
} else {
return false;
}
}