mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-20 17:59:08 +02:00
GameBrowser: Only play ICON1 videos for keyboard/gamepad focus
With touch or the mouse, the video started as soon as you pressed a game, so watching it without launching the game took a careful drag-and-release. Touch and mouse users can still see the video from the info button or a long press. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
3a569380a2
commit
672ff85efa
1 file changed
+3
-2
+3
-2
@@ -370,8 +370,9 @@ void GameButton::UpdateVideo(const std::shared_ptr<GameInfo> &ginfo, bool wantVi
|
||||
|
||||
void GameButton::Draw(UIContext &dc) {
|
||||
const bool largeList = viewMode_ == GameBrowserViewMode::LARGE_LIST;
|
||||
// Like the XMB, only the selected game plays its video. The mouse can select one too, by hovering.
|
||||
const bool wantVideo = largeList && (HasFocus() || hovering_) && pmf_player_available();
|
||||
// Like the XMB, only the selected game plays its video. Only keyboard/gamepad focus selects, since with
|
||||
// touch or the mouse, getting a video to play without launching the game was too fiddly.
|
||||
const bool wantVideo = largeList && HasFocus() && pmf_player_available();
|
||||
|
||||
GameInfoFlags infoFlags = GameInfoFlags::PARAM_SFO | GameInfoFlags::ICON;
|
||||
if (wantVideo) {
|
||||
|
||||
Reference in new issue
Block a user