fix(libSceVideoOut): do not forward host menu key releases to the pad #17717

Closed
MarcZX10 wants to merge 23 commits from upstream-pr/17717 into main
MarcZX10 commented 2026-11-09 12:18:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-09T12:18:11Z.


What

Follow-up to #17712 (the host menu on F4). While the menu is open, Up, Down, Enter and Escape are taken by the menu on press. Their releases still reached the pad, which saw a release for a button it never saw pressed. This PR records which of those four keys the menu consumed on press, and swallows the matching release.

The key is recorded only when the menu takes the press, so a release of a key the menu did not take still reaches the pad as before.

This PR is stacked on #17712: its first commits are that PR's. Merge #17712 first.

Commits: the state (a flag per key the menu takes), the recording on press, and the swallowed release.

Tested

Linux, built with video_out_mouse_tests, pad_keyboard_mouse_tests and video_out_host_menu_tests; ctest passes 3/3.

  • Not tested directly: the key release in PadInput, which needs a window. The build compiles that code.

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: #17712
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a, no AGC or shader change
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5223728992 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17717). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-09T12:18:11Z. --- ### What Follow-up to #17712 (the host menu on F4). While the menu is open, Up, Down, Enter and Escape are taken by the menu on press. Their releases still reached the pad, which saw a release for a button it never saw pressed. This PR records which of those four keys the menu consumed on press, and swallows the matching release. The key is recorded only when the menu takes the press, so a release of a key the menu did not take still reaches the pad as before. This PR is stacked on #17712: its first commits are that PR's. Merge #17712 first. Commits: the state (a flag per key the menu takes), the recording on press, and the swallowed release. ### Tested Linux, built with `video_out_mouse_tests`, `pad_keyboard_mouse_tests` and `video_out_host_menu_tests`; ctest passes 3/3. - Not tested directly: the key release in `PadInput`, which needs a window. The build compiles that code. 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: #17712 - [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!17717
No description provided.