feat(libSceAgcDriver): draw the host menu over the picture #17745

Closed
MarcZX10 wants to merge 33 commits from upstream-pr/17745 into main
MarcZX10 commented 2026-11-09 13:56:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-09T13:56:02Z.


What

Draws the host menu of #17712 over the picture. Until now it was only in the log. While the menu is open, its entries show in a panel centred on the window, with the cursor row highlighted; the panel is drawn above the keyboard and dialog overlays of the system.

The menu state goes from the input layer to the presentation with a plain C setter (AgcDriverSetHostMenu_nid_postfix), like the system dialog. The layout is the same kind of panel as the dialog: glyph rows, an accent border on the cursor row. Closing the menu hides the panel.

This PR is stacked on #17717, which is stacked on #17712: its first commits are those PRs'. Merge them first.

Commits: the view type, the layout test, the layout, the state and setter, the layering in the system overlay, the include and the close and open publishing from the input layer, and the wording of the input guide.

Tested

Linux, built with agc_keyboard_overlay_tests and video_out_mouse_tests; ctest passes 2/2.

  • The layout test checks that the cursor row is highlighted once, that it moves one row at a time as the cursor moves, that every rectangle lies inside the panel, and that an empty menu is refused.
  • Not tested on a screen: the panel drawn into a frame. No display was used for the presentation, so nothing was seen on a picture. The geometry is what the test covers.

GPUs tested: n/a, the panel is drawn with the existing overlay path; no shader or AGC change.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #17717
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a, no AGC or shader change
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5225019822 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17745). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-09T13:56:02Z. --- ### What Draws the host menu of #17712 over the picture. Until now it was only in the log. While the menu is open, its entries show in a panel centred on the window, with the cursor row highlighted; the panel is drawn above the keyboard and dialog overlays of the system. The menu state goes from the input layer to the presentation with a plain C setter (`AgcDriverSetHostMenu_nid_postfix`), like the system dialog. The layout is the same kind of panel as the dialog: glyph rows, an accent border on the cursor row. Closing the menu hides the panel. This PR is stacked on #17717, which is stacked on #17712: its first commits are those PRs'. Merge them first. Commits: the view type, the layout test, the layout, the state and setter, the layering in the system overlay, the include and the close and open publishing from the input layer, and the wording of the input guide. ### Tested Linux, built with `agc_keyboard_overlay_tests` and `video_out_mouse_tests`; ctest passes 2/2. - The layout test checks that the cursor row is highlighted once, that it moves one row at a time as the cursor moves, that every rectangle lies inside the panel, and that an empty menu is refused. - Not tested on a screen: the panel drawn into a frame. No display was used for the presentation, so nothing was seen on a picture. The geometry is what the test covers. GPUs tested: n/a, the panel is drawn with the existing overlay path; no shader or AGC change. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #17717 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a, no AGC or shader change - [x] AI-assisted: yes

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!17745
No description provided.