mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
Remove touch() return values from screen hierarchy
This commit is contained in:
1 parent
fdfc4cbe40
commit
a3a949f5e6
10 files changed
+18
-28
No files matched your search
+2
-5
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user