fix(libSceMouse): resolve absolute-position imports #11482

Merged
MarcZX10 merged 2 commits from upstream-pr/11482 into main 2026-10-29 10:53:48 +00:00
MarcZX10 commented 2026-10-26 16:45:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T16:45:44Z.


What

Issue #11477 reports unresolved imports from libSceMouse.prx. The three NIDs map to sceMouseReadAbsolutePosition (If6YTBcYAbc), sceMouseSetAbsoluteHighPrecisionMode (stCCyzJJyM0) and sceMouseSetAbsoluteVirtualScreenSize (oB2fBhW84tQ); the repository's NID tool recomputes those exact NIDs from the names. These exports are missing from libSceMouse and no open or closed PR for these functions was found.

This adds exports for the three names so import resolution can proceed. Each export throws NotImplemented_nid_no_patch if called. The no-argument declarations are import-only; the function signatures and behavior are unknown and are recorded as such in technical debt. This does not claim to implement the mouse APIs or guarantee the title proceeds past a call to them.

Tested

Linux x86-64, GCC 12.2.0:

  • Export.cpp compiles with -std=c++20 -Wall -Wextra -Werror.
  • An isolated harness linked the actual Export.cpp stubs with a throwing test double for NotImplemented_nid_no_patch; it verified that all three calls throw with their function names.
  • nm shows all three expected function symbols in the object, and tools/nid_names.py computes the three NIDs listed above.
  • python3 tools/check_conventions.py --base upstream/main, git diff --check, tools/check_main_sync.py --base upstream/main --head HEAD --strict, and tools/pr_overlap.py --branch marc/libscemouse-absolute-import-stubs pass.
  • The repository mouse_input CTest was not run locally because SDL2 headers and the SDL2 pkg-config module are unavailable in this environment. The test source adds assertions that the exports throw.

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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5021220297 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11482). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T16:45:44Z. --- ### What Issue #11477 reports unresolved imports from `libSceMouse.prx`. The three NIDs map to `sceMouseReadAbsolutePosition` (`If6YTBcYAbc`), `sceMouseSetAbsoluteHighPrecisionMode` (`stCCyzJJyM0`) and `sceMouseSetAbsoluteVirtualScreenSize` (`oB2fBhW84tQ`); the repository's NID tool recomputes those exact NIDs from the names. These exports are missing from `libSceMouse` and no open or closed PR for these functions was found. This adds exports for the three names so import resolution can proceed. Each export throws `NotImplemented_nid_no_patch` if called. The no-argument declarations are import-only; the function signatures and behavior are unknown and are recorded as such in technical debt. This does not claim to implement the mouse APIs or guarantee the title proceeds past a call to them. ### Tested Linux x86-64, GCC 12.2.0: - `Export.cpp` compiles with `-std=c++20 -Wall -Wextra -Werror`. - An isolated harness linked the actual `Export.cpp` stubs with a throwing test double for `NotImplemented_nid_no_patch`; it verified that all three calls throw with their function names. - `nm` shows all three expected function symbols in the object, and `tools/nid_names.py` computes the three NIDs listed above. - `python3 tools/check_conventions.py --base upstream/main`, `git diff --check`, `tools/check_main_sync.py --base upstream/main --head HEAD --strict`, and `tools/pr_overlap.py --branch marc/libscemouse-absolute-import-stubs` pass. - The repository `mouse_input` CTest was not run locally because SDL2 headers and the SDL2 pkg-config module are unavailable in this environment. The test source adds assertions that the exports throw. ### 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 - [x] AI-assisted: yes
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!11482
No description provided.