feat(libSceVideoOut): host menu on F4 with the existing host shortcut actions #17712

Closed
MarcZX10 wants to merge 21 commits from upstream-pr/17712 into main
MarcZX10 commented 2026-11-09 11:53:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-09T11:53:05Z.


What

Adds a host menu on F4. F4 opens it; Up and Down move the cursor; Enter runs the chosen action; Escape closes it. The entries are the host actions that already exist on other keys: volume up and down, mute, screenshot, performance overlay and pad status, plus Close. While the menu is open, Up, Down, Enter and Escape are used by the menu and do not reach the title's pad.

The menu is shown in the log (APS5_LOG_ERR), one line per entry with the cursor marked. It is not drawn on screen yet. A menu on screen needs drawing that has not been checked on a display, so it is left to a separate PR.

Actions reuse the same request handling as the existing shortcuts, so each one does exactly what its own key does. The shortcut handling was moved into one method (applyHostRequests) with no behaviour change.

The action names can be remapped like the other host actions (HostMenu).

Commits: the model of the menu (its tests and its ctest registration, from the validated branch feat/host-menu), the F4 control, binding, request and routing, the action name, the refactor, the menu in the pad input, the toggle, the arrow keys, Enter, Escape, the logging, the F4 test, and the docs row.

Known gap: releasing Up, Down, Enter or Escape while the menu is open still reaches the pad. The pad sees a release it never saw pressed, which does nothing, but the key-up is not swallowed.

Tested

Linux, built with video_out_host_menu_tests, video_out_mouse_tests and pad_keyboard_mouse_tests; ctest passes 3/3 (video_out_host_menu, video_out_mouse, pad_keyboard_mouse).

  • The keyboard test checks that F4 asks for the host menu on press and nothing on release.
  • The model test checks the cursor wrap, activation, and the Close entry.
  • Not tested: the key routing in PadInput and the log output, which need a window. No title was run.

GPUs tested: n/a, no graphics code.

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: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a, no AGC or shader change
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5223419376 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17712). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-09T11:53:05Z. --- ### What Adds a host menu on F4. F4 opens it; Up and Down move the cursor; Enter runs the chosen action; Escape closes it. The entries are the host actions that already exist on other keys: volume up and down, mute, screenshot, performance overlay and pad status, plus Close. While the menu is open, Up, Down, Enter and Escape are used by the menu and do not reach the title's pad. The menu is shown in the log (`APS5_LOG_ERR`), one line per entry with the cursor marked. It is not drawn on screen yet. A menu on screen needs drawing that has not been checked on a display, so it is left to a separate PR. Actions reuse the same request handling as the existing shortcuts, so each one does exactly what its own key does. The shortcut handling was moved into one method (`applyHostRequests`) with no behaviour change. The action names can be remapped like the other host actions (`HostMenu`). Commits: the model of the menu (its tests and its ctest registration, from the validated branch `feat/host-menu`), the F4 control, binding, request and routing, the action name, the refactor, the menu in the pad input, the toggle, the arrow keys, Enter, Escape, the logging, the F4 test, and the docs row. Known gap: releasing Up, Down, Enter or Escape while the menu is open still reaches the pad. The pad sees a release it never saw pressed, which does nothing, but the key-up is not swallowed. ### Tested Linux, built with `video_out_host_menu_tests`, `video_out_mouse_tests` and `pad_keyboard_mouse_tests`; ctest passes 3/3 (`video_out_host_menu`, `video_out_mouse`, `pad_keyboard_mouse`). - The keyboard test checks that F4 asks for the host menu on press and nothing on release. - The model test checks the cursor wrap, activation, and the Close entry. - Not tested: the key routing in `PadInput` and the log output, which need a window. No title was run. GPUs tested: n/a, no graphics code. ### 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: none - [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!17712
No description provided.