libSceVideoOut: while a title reads the mouse, the default mouse bindings still press Square and R2, so High on Life (PPSA15388) re-centres its cursor and menu clicks are lost; fix branch ready #6564
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Tamalero on 2026-10-15T20:50:51Z.
High on Life reads the mouse itself (
sceMouseOpen) and draws its own cursor in the menus. Onmain, left-clicking a menu item doesn't select it: the cursor snaps back to the centre of the screen and the click is lost. That happens on every click, with the default input mapping and nothing toggled.The cause is the default bindings in
INPUT_MAPPING.md:Square = MOUSE:LeftandR2 = MOUSE:Right.PadInput::HandleEventpasses every mouse-button press toKeyboardMouse, whether or not the title has the mouse open. So one click reaches the game twice, as a mouse click through libSceMouse and as a Square press on the pad. The game takes the pad press as a switch to gamepad input, re-centres its cursor, and drops the click.Mouse motion has the same overlap once mouse mode is on (the middle button,
ToggleMouse): motion then tilts the right stick while the title also reads it as mouse movement. #6147 covers the capture side of mouse mode.Title: High on Life (PPSA15388)
Where: the main menu and settings, on
maince991f1ec. #6205's PlayGo setting is needed to start the title until #6236/#6263 land. Linux, RTX 4090, keyboard and mouse, no controller.maince991f1ecmaince991f1ec+ the fix belowFix
Branch: https://github.com/Tamalero/AnyPS5/tree/fix/mouse-off-pad-while-title-reads-mouse (one commit on
ce991f1ec).While libSceMouse has a handle open (
MouseIsOpen_nid_no_patch, the same checkMouseInputuses for capture),KeyboardMouseignores mouse motion and mouse-button presses. Releases still pass, so a button held before the title opened the mouse is let go. Keys and the wheel are unchanged.PadInputsets the flag next to the existing IME guard (ImeCapturesKeyboard_nid_postfix), which does the same for keys while the IME has the keyboard.A side effect: while the title reads the mouse, the middle button no longer toggles mouse mode, so it doesn't release the captured cursor either. Leaving the window still releases it (focus loss). Titles that don't open the mouse behave exactly as before: the bindings, mouse mode and the middle-button toggle all still work there.
Tests
pad_keyboard_mousegains a "title reads the mouse" case:With the two behaviour lines in
KeyboardMouse.cppreverted and the test kept,pad_keyboard_mousefails (negative check).pad_keyboard_mouseandvideo_out_mousepass.tools/check_conventions.py --base origin/mainpasses.Details
--to-intelby the relinker atce991f1ec. Same executable for every run.main+ the PlayGo setting: clicks lost and cursor re-centred. With the middle button, the capture was released but the motion was still tracked.PadInput: clicks work.MouseIsOpenkept out of NID exports).Tested and written by Claude (AI assistant) on a contributor's machine.