libSceMouse: ten exports need their argument lists and checks from the firmware module #15088

Closed
opened 2026-11-02 14:53:43 +00:00 by zaryabzip · 0 comments
zaryabzip commented 2026-11-02 14:53:43 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by zaryabzip on 2026-11-02T14:53:43Z.


What happens

Ten libSceMouse exports that a game can call still throw through NotImplemented_nid_no_patch on every call:

  • sceMouseGetHandle, sceMouseGetDeviceInfo, sceMouseSetHandType and sceMouseSetPointerSpeed;
  • the extension calls sceMouseExtensionRead, sceMouseExtensionReadState, sceMouseExtensionGetCursor, sceMouseExtensionSetCursor, sceMouseExtensionSetConfig and sceMouseExtensionScalePosition.

All are declared without parameters, because no prototype is known.

What's known

  • AnyPS5 answers sceMouseInit, sceMouseOpen, sceMouseClose, sceMouseRead and sceMouseResetAbsolutePosition. #12958 adds the absolute-position calls from @BunnyFl's 13.42 run, which Mewgenics (PPSA37318, #11477) uses.
  • docs/dev/debt/libSceMouse.md lists the extension calls and sceMouseGetHandle with their NIDs, from the 13.60 inventory, and nothing else about them.
  • shadPS4 0614ce32 returns 0 with a (STUBBED) log from GetDeviceInfo, SetHandType and SetPointerSpeed, and doesn't define the other seven.
  • No open pull request or issue touches these names. I searched every open PR's diff for them.

What would settle it

For each export, from firmware 13.42's libSceMouse.sprx:

  • the argument list;
  • the checks, with their order and error codes;
  • what happens past them: a fixed answer, library state, or a driver or service call.

Specific questions:

  1. Does sceMouseGetHandle(userId, type, index) return the handle sceMouseOpen gave, the way scePadGetHandle does?
  2. Do SetHandType and SetPointerSpeed store values that sceMouseRead applies, or pass them to the driver?
  3. Are the extension calls a cursor model kept in the library (position, configuration, scaling) or driver calls? If they keep state, what is its layout, and does ScalePosition only compute from its arguments?

Calls that only reach the driver or service can stay unsupported. Their local checks and argument lists would still replace the current placeholders.

@BunnyFl's 13.42 module runs (#13680, #13682, #13737) would settle most of this, like the absolute-position run behind #12958.

What was checked

main at 92d2fdc343; tools/progress.py; shadPS4 0614ce32 (src/core/libraries/mouse/mouse.cpp); and the diffs of all open PRs.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6164944213 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/15088). Originally posted by [zaryabzip](https://github.com/zaryabzip) on 2026-11-02T14:53:43Z. --- ### What happens Ten libSceMouse exports that a game can call still throw through `NotImplemented_nid_no_patch` on every call: - `sceMouseGetHandle`, `sceMouseGetDeviceInfo`, `sceMouseSetHandType` and `sceMouseSetPointerSpeed`; - the extension calls `sceMouseExtensionRead`, `sceMouseExtensionReadState`, `sceMouseExtensionGetCursor`, `sceMouseExtensionSetCursor`, `sceMouseExtensionSetConfig` and `sceMouseExtensionScalePosition`. All are declared without parameters, because no prototype is known. ### What's known - AnyPS5 answers `sceMouseInit`, `sceMouseOpen`, `sceMouseClose`, `sceMouseRead` and `sceMouseResetAbsolutePosition`. #12958 adds the absolute-position calls from @BunnyFl's 13.42 run, which Mewgenics (PPSA37318, #11477) uses. - `docs/dev/debt/libSceMouse.md` lists the extension calls and `sceMouseGetHandle` with their NIDs, from the 13.60 inventory, and nothing else about them. - shadPS4 0614ce32 returns 0 with a `(STUBBED)` log from `GetDeviceInfo`, `SetHandType` and `SetPointerSpeed`, and doesn't define the other seven. - No open pull request or issue touches these names. I searched every open PR's diff for them. ### What would settle it For each export, from firmware 13.42's `libSceMouse.sprx`: - the argument list; - the checks, with their order and error codes; - what happens past them: a fixed answer, library state, or a driver or service call. Specific questions: 1. Does `sceMouseGetHandle(userId, type, index)` return the handle `sceMouseOpen` gave, the way `scePadGetHandle` does? 2. Do `SetHandType` and `SetPointerSpeed` store values that `sceMouseRead` applies, or pass them to the driver? 3. Are the extension calls a cursor model kept in the library (position, configuration, scaling) or driver calls? If they keep state, what is its layout, and does `ScalePosition` only compute from its arguments? Calls that only reach the driver or service can stay unsupported. Their local checks and argument lists would still replace the current placeholders. @BunnyFl's 13.42 module runs (#13680, #13682, #13737) would settle most of this, like the absolute-position run behind #12958. ### What was checked `main` at 92d2fdc343; `tools/progress.py`; shadPS4 0614ce32 (`src/core/libraries/mouse/mouse.cpp`); and the diffs of all open PRs. AI-assisted: yes (Claude Code)
Sign in to join this conversation.
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#15088
No description provided.