Make sure touch-gamepad components can't be focused by accident

This commit is contained in:
Henrik Rydgård
2026-03-31 14:58:56 -06:00
parent a94faabcd0
commit 1f65b326a8
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -165,6 +165,8 @@ static void MoveFocus(ViewGroup *root, FocusDirection direction) {
neigh.view->SetFocus();
root->SubviewFocused(neigh.view);
// INFO_LOG(Log::UI, "Focus moved from %s to %s", focusedView->DescribeText().c_str(), neigh.view->DescribeText().c_str());
PlayUISound(UISound::SELECT);
}
}
+1
View File
@@ -46,6 +46,7 @@ public:
virtual bool IsDownByTouch() const {
return false;
}
bool CanBeFocused() const override { return false; }
protected:
std::string key_;