mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Merge pull request #17723 from hrydgard/minor-changes
Address some feedback
This commit is contained in:
2 files changed
+7
-7
No files matched your search
+6
-5
@@ -141,16 +141,13 @@ static void MoveFocus(ViewGroup *root, FocusDirection direction) {
|
||||
return;
|
||||
}
|
||||
|
||||
NeighborResult neigh;
|
||||
neigh = root->FindNeighbor(focusedView, direction, neigh);
|
||||
NeighborResult neigh = root->FindNeighbor(focusedView, direction, neigh);
|
||||
|
||||
if (neigh.view) {
|
||||
neigh.view->SetFocus();
|
||||
root->SubviewFocused(neigh.view);
|
||||
|
||||
PlayUISound(UISound::SELECT);
|
||||
} else {
|
||||
INFO_LOG(SCECTRL, "No neighbor view");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -257,7 +254,11 @@ KeyEventResult UnsyncKeyEvent(const KeyInput &key, ViewGroup *root) {
|
||||
retval = KeyEventResult::PASS_THROUGH;
|
||||
break;
|
||||
default:
|
||||
retval = KeyEventResult::ACCEPT;
|
||||
if (!(key.flags & KEY_IS_REPEAT)) {
|
||||
// If a repeat, we follow what KeyEventToFocusMoves set it to.
|
||||
// Otherwise we signal that we used the key, always.
|
||||
retval = KeyEventResult::ACCEPT;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return retval;
|
||||
|
||||
@@ -602,8 +602,7 @@ handleELF:
|
||||
info_->pic1.dataLoaded = ReadFileToString(&umd, "/PSP_GAME/PIC1.PNG", &info_->pic1.data, nullptr);
|
||||
}
|
||||
if (info_->wantFlags & GAMEINFO_WANTSND) {
|
||||
ReadFileToString(&umd, "/PSP_GAME/SND0.AT3", &info_->sndFileData, nullptr);
|
||||
info_->sndDataLoaded = true;
|
||||
info_->sndDataLoaded = ReadFileToString(&umd, "/PSP_GAME/SND0.AT3", &info_->sndFileData, nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user