mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Make sure touch-gamepad components can't be focused by accident
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@ public:
|
||||
virtual bool IsDownByTouch() const {
|
||||
return false;
|
||||
}
|
||||
bool CanBeFocused() const override { return false; }
|
||||
|
||||
protected:
|
||||
std::string key_;
|
||||
|
||||
Reference in New Issue
Block a user