kbm: Page Up / Page Down hold the right stick up / down #606
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!606
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/606/head"
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?
@simnJS on GitHub · 2026-11-24 02:24 UTC · original
kbm-page-keys→main· +26 −1 · 2 files · 1 commits · closed without mergingWith keyboard and mouse the right stick is the mouse, which deflects it only while it keeps moving, so a long menu text that scrolls with the right stick (retail title's terms of service) could not be read to the end without a gamepad. Page Up / Page Down now hold the right stick fully up / down; a real stick deflected further still wins, as for WASD and the mouse.
Ported from theaustinayers' modified build (theaustinayers/xcl,
v0.1.0-mod.10), where it has been in use; credited withCo-authored-byin the commit.What is in it
kbm: Page Up / Page Down hold the right stick up / down(+26 / -1):crates/xcl/src/hle/kbm.rs(stick_from_page_keys, used inapply; the mapping table of the module doc; testpage_keys_hold_the_right_stick_up_or_down),README.md(Controls).Tested
scripts/test.ps1(debug) on62d31c5: 685 passed, 0 failed, 41 ignored.gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware.Regression run
Same title for 60 s,
XCL_NETWORK=0, no input (the keys are not pressed in these runs).Not tested
AI use
@futurepro62 on GitHub · 2026-11-24 03:59 UTC · original
Tested exact head
62d31c5(on its base9ce2070).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 642 passed, 3 failed, 21 ignored in the lib tests. The first run failed 3 lib tests that this PR does not touch:title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels(assertion left == right failed: cubemap extra_pages must be reused at same va, left 2359296, right 2555904), and thentitle_textures::tests::transitions_apply_when_their_list_is_submittedandvram::tests::d32s8_targets_take_their_own_size_of_video_memoryon the lock it poisoned (PoisonError). The same three failed the same way in that batch on #608 and #604 (also on9ce2070), but not in 15 later lib runs (5 each onmain9ce2070, #606 and #608). So I read it as an intermittent failure of the title-texture test onmain, not this PR.XCL_REQUIRE_GPU=mesh cargo test -p xcl --lib -- --test-threads=4, 5 more runs: 3 passed (645 passed, 0 failed, 21 ignored), 2 hung on the #344 deadlock (gpu_uma_import_check_at_initand three other GPU tests;mainhas it too, #443 fixes it).Not tested
scripts/smoke.ps1(no title on this machine), the whole workspace suite to the end on this head, AMD, a release build.AI use
@MesshM on GitHub · 2026-11-24 04:00 UTC · original
Test run of
62d31c58a5c4cfa3ceb002f4395e74d4ed859cd4on AMD RDNA4. I merged it onto currentmainf4ce27clocally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 658 passed, 3 failed, 21 ignored, exit code 101; 0SKIPPEDplaced_title_textures_share_vram_and_preserve_pixels,transitions_apply_when_their_list_is_submitted,d32s8_targets_take_their_own_size_of_video_memory. These three also fail onmainf4ce27cwith no PR applied (cargo test -p xcl --lib -- --test-threads=4: 657 passed, 3 failed), so they are not from this change. The first isplaced_title_textures_share_vram_and_preserve_pixelsatcubemap extra_pages must be reused at same va; the other two arePoisonErrors from the lock it poisons (#673 addresses the cascade, #447 the cubemap check). It is intermittent: alone it passes 3 of 3, and in the parallel lib run it failed on 6 of 7 runs atf4ce27c, 2 of 6 atd852f9aand 1 of 3 at1387b4bon this machine.page_keys_hold_the_right_stick_up_or_downpasses.Review: Page Up / Page Down hold the right stick fully up / down, both together do nothing, and a real stick deflected further still wins. I found nothing to change.
Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@mikebuckets171 on GitHub · 2026-11-24 07:55 UTC · original · edited 2026-11-24 08:02 UTC
Mac/Wine verification of this head as filed — and one host datapoint about the condition this route needs.
Tested
x86_64-pc-windows-gnullvm, LLVM-MinGW 20261117 as the linker.62d31c5on base9ce2070(detached at the PR head, not the merged state):cargo build --workspace --lockedandcargo test --no-run --release --lockedgreen — 15 test executables, no new warnings fromthese files.
kbm→ 8 passed, 0 failed, 0 ignored, whichis the whole module including this PR's new
page_keys_hold_the_right_stick_up_or_downand the existingmouse_speed_becomes_a_deflection,velocity_follows_the_counts_and_settles,focus_loss_resets_mouse_velocity_and_wheel_state; filterstick→ 2 passed, 0 failed(
movement_keys_make_a_unit_stick,page_keys_hold_the_right_stick_up_or_down).hle::gameinput::tests::keyboard_mouse_config_gates_keyboard_and_kbm_but_keeps_scriptedalso passes, sothe config gate around
kbmis unchanged by this patch on the Wine target.What this host adds: keyboard routes need the window, sticks do not
On a headless or background run the keyboard path is the fragile part:
keyboard()returns nothing unlessGetForegroundWindow()belongs to this process, and in this bench's Wine runs (the port'sXCL_BACKGROUND=1mode) the log says plainly
keys are down (0x…) but the window has not been clicked – ignored. That is notthis PR's doing — it is the existing gate — but it means Page Up/Page Down reach the right stick only while
someone has clicked the XCL window. If #606 is meant to make a title navigable in an unattended run, the
focus gate, not the mapping, is what stops it.
For that case I have just filed #893:
XCL_STICK_AT=s:x/y,…/XCL_LOOK_AT=s:x/y,…hold a deflectionfrom a second until the next entry, no window and no person needed. It runs after
kbminpoll(), so if bothland the order is
kbm(your Page-Key holds included) → scripted buttons → scripted sticks: while a scriptedentry holds it overrides them, the way a scripted button press already overrides a key. If you would rather
have a person at the window win while they are deflecting something, that is a one-line change of order and I
will make it — say so on #893. If #606 lands first I will rebase onto it.
Not tested
no input I can feed it changes (see #258, my picture-statistics runs), so I can verify the mapping and its
tests but not the on-screen effect.
AI use
Pull request closed