Skip to content

Big Picture: every choice in a dialog can be picked with the controller - #470

Merged
3 commits merged into
elripalda:mainfrom
AngeloAscheri:tv-dialog-pad
Nov 24, 2026
Merged

3 commits merged into
elripalda:mainfrom
AngeloAscheri:tv-dialog-pad

Conversation

@AngeloAscheri

Copy link
Copy Markdown
Contributor

A dialog from the desktop view that has no Big Picture sheet of its own still shows over Big Picture (the launcher's own update errors, and the ones that come from events). The controller could only do three things there: A pressed its main button, B closed it, up and down scrolled it. Any other button, switch or list in it needed a mouse.

What changed (ui/tv.js only)

  • When a dialog is up, Big Picture hands the d-pad and A to the desktop view's own controller handling (deskPad), which already moves a highlight between a dialog's buttons, switches, lists and sliders. Every choice in the dialog can now be reached and picked.
  • Nothing lit yet: the first press lights the main button, and A presses it straight away, as before. B still closes the dialog (unless it's busy), as before.
  • Up and down still scroll long text (What's New) while nothing to pick shows on screen that way, then move on to the buttons, so the notes can still be read with a controller.
  • The controller answers the newest dialog when one opened another (it used to pick the first .scrim in the page).

#app is hidden in Big Picture and padTargets leaves out what's hidden, so the highlight never lands on the desktop view under it when a dialog closes.

Testing

  • On Bazzite (KDE Wayland, RX 6700 XT, 1440p), with this change alone: Big Picture, Donkey Kong Bananza → Install shows the desktop's Which Version dialog, left and right move the highlight between Linux Folder and Windows Build, A installs the one lit, B closes it. (Big Picture: pick a release's build with the controller #469 gives that dialog a sheet of its own; this covers every other one.)
  • node --test tests/*.test.cjs passes. The old dialog-scroll test now checks the new rule, with tests for the d-pad, the first A, and the newest dialog.

🤖 Generated with Claude Code

A dialog from the desktop view that has no sheet of its own showed over Big Picture with only
three things a controller could do: A pressed its main button, B closed it, and up and down
scrolled it. Any other button, switch or list in it needed a mouse.

The d-pad now moves the highlight through the dialog with the desktop view's own controller
handling (deskPad), so every choice can be reached and picked. The first press lights the main
button, and A presses it at once, as before. Up and down still scroll long text (What's New)
while there's nothing to pick on screen that way, and the controller answers the newest dialog
when one opened another.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…g the source

The four dialog tests matched lines of tv.js, so they kept passing if the d-pad stopped working
on a dialog. They now run the desktop's controller handling (deskPad, from app.js) and Big
Picture's press() with the dialog code (from tv.js) together on a small fake page, as
desktop-pad.test.cjs does, and check what happens: A on a dialog with nothing lit presses its
main button, the first direction lights it without pressing it, the next one moves to the other
button and A presses that, B closes a dialog but not a busy one, down scrolls long text while no
choice shows below, the newest of two dialogs answers, and without deskPad up and down still
scroll. tv.js is unchanged: press() is cut out of its wrapper as it is.
The desktop's controller code on main now listens for the window losing focus, so running it on
a window without addEventListener threw before any dialog test began.

@Xarishark Xarishark left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All notes resolved and CI passed. Approving.

@elripalda elripalda closed this pull request by merging all changes into elripalda:main in 01521ba Nov 24, 2026
@orca-bots

orca-bots Bot commented Nov 25, 2026

Copy link
Copy Markdown

Issue Triage

Working…

elripalda added a commit that referenced this pull request Nov 25, 2026
* Beta 69 notes: everything merged since the first test build

Beta 69 was never published, so it's rebuilt from main with the fixes
found while testing it and the other changes merged since.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Beta 69 notes: Big Picture dialog choices with the controller (#470)

---------

Co-authored-by: Ripalda <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Zacharias Xenakis <[email protected]>
@AngeloAscheri
AngeloAscheri deleted the tv-dialog-pad branch November 25, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants