fix(libSceMouse): implement sceMouseResetAbsolutePosition with the arguments its callers pass #5986
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5986"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T18:28:27Z.
What
Carries #4439 by @snydercodes09 (closed for an assumed signature), keeping their commit, with the signature taken from a call site.
PPSA30601 (Resonance: A Plague Tale Legacy) stops at start-up with
sceMouseResetAbsolutePosition not implementedon main. Its only call passes the mouse handle inediand two values zero-extended from 16 bits inesiandedx: half of the display width and height minus one, from a size query. The result is not read.sceMouseResetAbsolutePosition(int32 handle, uint16 x, uint16 y)validates initialization and the handle the same waysceMouseReaddoes and returnsMOUSE_OK.docs/dev/debt/libSceMouse.mdrecords this and that the behaviour is not measured on hardware.Tested
Linux (CachyOS, GCC, Release,
BUILD_TESTING=ON):mouse_inputcovers the call before init, before open, with a wrong handle, on an open handle and after close. It aborts against main'slibSceMouse.prx(sceMouseResetAbsolutePosition not implemented) and passes with this change.video_out_mouseandpad_keyboard_mousealso pass.AGC graphics: clip rectangles are unsupported, which is a separate issue.tools/check_conventions.pyandgit diff --checkpass.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T18:29:14Z.
Progress report (
9e9d86f→b816673)📈 System libraries: 89.02% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceMouseResetAbsolutePositionImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T18:35:34Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/debt/libSceJson2.mdL13-14Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
docs/dev/debt/libSceJson2.mddocs/dev/debt/libSceJson2.mdcore/libs/prx/libSceMouse/Export.cppdocs/dev/debt/libSceJson2.mdImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T20:30:14Z.
Holding this until the behaviour is measured on a console: what
sceMouseResetAbsolutePositionreturns for an open handle, a wrong handle and before init, and whether a later read reports the position it was given. If anyone has a probe set up, those cases would settle it.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T02:04:22Z.
The overlap notice points to #5923, which adds an unconditional no-argument success stub. This PR instead uses the
(handle, x, y)call-site shape and validates initialization/handle state. #5923 appears to be a separate implementation proposal for the same export. Could you and @Kurenaiiiii agree on sequencing and whether this PR supersedes that proposal? Your reported title run and the existing overlap details give reviewers useful evidence for the decision.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T20:11:49Z.
Checked
sceMouseResetAbsolutePosition(int32 handle, uint16 x, uint16 y)against the call site described in the body and themouse_inputtest (before init, before open, wrong handle, open, closed, merged open): build and test pass on Linux. Rebased onto currentmain(only thelibSceJson2.mddebt line conflicted). #6447 changes the same export without arguments and will need to rebase on this one. Merging.