fix(libSceVideoOut): preserve mouse-to-stick relative mode #6153
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6153"
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 MarcZX10 on 2026-10-14T23:41:14Z.
What
Fixes #6147. When the pad's mouse-to-stick mode owns SDL relative mouse mode,
MouseInput::UpdateCapture(false)now clears guest capture bookkeeping without disabling the SDL mode. The mouse input test covers that handoff and restoration of guest capture when mouse-to-stick mode ends.The issue analysis and suggested guard came from @HQasper; this PR credits their report and proposed fix.
Tested
video_out_mouse_testsbuilt successfully.ctest --test-dir /tmp/anyps5-open-diagnostics-main-build -R '^video_out_mouse$' --output-on-failurecould not reach the test body because the existing HostCpu check rejects this Xeon E5-1620 v2 host (missing LZCNT, BMI1/2, MOVBE, AVX2 and FMA).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 repositoryImported from boykopovar/AnyPS5. Originally posted by coltken95 on 2026-10-15T00:19:37Z.
Tested on Linux x86-64 (Release build), with
df4350f3amerged into mainab9a47684. The HostCpu check passes on this host, sovideo_out_mouseruns to completion:video_out_mousepasses.MouseInput.cpp: it aborts withmouse input: mouse-to-stick mode lost relative mouse mode.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by Tamalero on 2026-10-16T05:37:03Z.
Title evidence for this change (and #6195, which makes the same
UpdateCapturechange): LEGO Batman: Legacy of the Dark Knight (PPSA16833 v01.010.000) needs the right stick for the camera in gameplay, so ToggleMouse is the only way to look around with a keyboard and mouse.Two runs of the same build, with and without this PR's
MouseInput.cppchange (identical to this branch's; nothing else differs between the runs):Details
Linux (CachyOS), RTX 4090, i9-14900K, GCC, Release. Base
main5d9dcc42d, plus the changes this title needs to reach gameplay (#6688, the Terms of Service part of #6447, the sampler capacity from #6699) and the #6569 input change. Those are the same in both runs. The title was relinked with--to-intelby the relinker at5d9dcc42d. One run each.Tested and written by Claude (AI assistant) on a contributor's machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T15:34:21Z.
Thanks for the controlled LEGO Batman runs. I checked the open overlap: #6195 carries the same
UpdateCapturechange, and your title result validates that shared behavior. The independent Linux test on #6153 also shows the relative-mode regression against main.