feat(libSceVideoOut): bind horizontal wheel steps with WHEEL:Left and WHEEL:Right #17149
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17149"
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 ycbuzi on 2026-11-08T11:38:29Z.
What
anyps5-input.inionly acceptedWHEEL:UpandWHEEL:Down. The wheel handler also returned early on SDL's horizontal scroll (wheel.x), so nothing could bind a tilting wheel's sideways clicks, or any other source of horizontal scrolling, to a pad button.InputBindinggets awheelTilt(+1 right, -1 left) next towheelDirection. The parser acceptsWHEEL:LeftandWHEEL:Right, case-insensitive like the other values, for pad buttons only, as before. Duplicate detection compares the new field too.WheelPressDurationMs(80 ms) and lets go of the opposite direction.SDL_MOUSEWHEEL_FLIPPED.docs/user/INPUT_MAPPING.mdlists the two new values, and the browser input mapper offers them.I'm adding this for the Meta Quest. Meta's Android apps features overview says a 2D app gets the Touch controller thumbstick as scrolling on
AXIS_HSCROLL/AXIS_VSCROLL. Termux:X11, which shows a Linux AnyPS5 build there, passes that on as X wheel events, so left and right can't reach a title without horizontal wheel bindings. The change itself is generic.Tested
Windows 11, MinGW g++ from the winrun toolchain (the
build/pr-rintflags and its SDL2), CPU only:pad_keyboard_mouse_testspasses all 32 cases, including the newwheel tiltcase:pad_input_mapping_testspasses, including the newwheelTiltcases:origin/main'ssrc/KeyboardMouse.cppandsrc/InputMapping.cpp. They fail witha right tilt presses only Rightandmouse wheel direction must be UP or DOWN.node --test tools/input-mapper/tests/: 45 of 45 pass.python3 tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.pyfails here while fetching PR heads (fetch-pack: invalid index-pack output). A GraphQL file-list check found #14294 (tools/input-mapper/tests/mapping.test.js) and #16097 (docs/user/INPUT_MAPPING.md), andgit merge-treemerges both cleanly.Not tested: a Linux build, and a title on the Quest. The Quest end-to-end check waits on a controller session in the headset.
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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by coptergui-ops on 2026-11-08T12:57:31Z.
Review: APPROVED
Reviewed at current head. Adds wheelTilt (+1 right/-1 left) beside wheelDirection in InputBinding; parser accepts WHEEL:Left/Right case-insensitively (pad buttons only, same as vertical), duplicate detection extended to the new field; KeyboardMouse::HandleEvent now handles wheel.x with SDL_MOUSEWHEEL_FLIPPED applying to both axes, tilt steps press/release with the same 80ms WheelPressDurationMs and never interfere with vertical bindings (and vice versa); nothing bound by default. Tests: parser tests (case-insensitivity, rejection of Sideways, stick-rejection, duplicate line), KeyboardMouse::testWheelTilt via Simulate pins unbound-presses-nothing and direction isolation; docs/user/INPUT_MAPPING.md and tools/input-mapper updated together with the mapping.test.js additions. Body gives a concrete Quest/Termux:X11 motivation and a Windows 11 MinGW test report. No bot pending pairs for this PR (no shared files with other open PRs). Conventions checker: baseline warnings only, no new findings.