WIP: [pr-fix][input] Radial wheel held with right mouse in the driver seat (DARNER_WHEEL_HOLD=1, off by default) #6
Loading…
Reference in a new issue
No description provided.
Delete branch "Jesper-A/Darner:pr4-wheel-hold"
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?
Re-filed from CodeFloe #327 (the CodeFloe repo is gone; nothing was migrated). Same branch and commit.
Base: the branch (3 commits) is on
f2bccf656, themaincommit it was cut from.mainis nowdd2f061d5. Not rebased (we rebase only if you ask). A text-only trial merge (git merge-tree --write-tree trustno1/main pr4-wheel-hold) conflicts indocs/findings.mdonly;gameinput.rs,README.mdandlib.rsmerge cleanly.Contributor role (optional)
What it changes
With MOUSE AND KEYBOARD and the native mouse on, right mouse in the driver seat is the left shoulder (
overlay_mouse_mapping), and that function drops the left shoulder once the radial wheel is active. Holding right mouse therefore opened the wheel, let it go, and opened it again, so the wheel opened and closed in a loop.Switch:
DARNER_WHEEL_HOLD=1. Default: off (not set); behaviour is then exactly as on main. With it on, the left shoulder stays pressed while right mouse is held after the wheel opened, until the button comes up (wheel_hold_step). Driver seat only: other seats, pads and aircraft are unchanged. Read once at the start throughasked_for!, soDARNER_ABalso reaches it in diagnostics builds.One side effect to look at: the macros
toggled!/asked_for!reach$crate::ab, which was private todarner-gpu, so they did not compile in another crate with thediagnosticsorabfeature.abis nowpubwith#[doc(hidden)], andab::bitandab::onarepub(crates/darner-gpu/src/ab.rs,lib.rs). Nothing else indarner-gpuchanges.Also: a README row and a
docs/findings.mdentry.Files:
crates/darner-hle/src/modules/gameinput.rs,crates/darner-gpu/src/{ab.rs,lib.rs},README.md,docs/findings.md.How it was tested
5cfac73cb(this PR's head, on mainf2bccf656). Main is nowdd2f061d5; a trial merge of this head into it conflicts only indocs/findings.md(see Base), which I will fix when the PR leaves WIP. The in-game checks below were not on this exact revision (see Gameplay).-j 4 --locked, in the PR worktree:cargo clippy -j 4 --workspace --all-targets --locked -- -D warnings -A clippy::unnecessary_lazy_evaluations: clean.cargo clippy -j 4 --workspace --all-targets --all-features --locked -- -D warnings -A clippy::unnecessary_lazy_evaluations: clean.-A clippy::unnecessary_lazy_evaluations: the plain-D warningsgate fails on main itself on that lint, in code this PR does not touch.cargo test -j 4 --workspace --locked: the test programs that ran before thedarner-gpulib test all passed (104 passed 1 ignored; 2; 2; 3; 30; 86 passed 7 ignored; 44 passed; 0 failed). Thedarner-gpulib test program then did not finish:host::refresh_tests::a_title_write_flushes_copies_of_its_pages_at_other_addressesstalls with--test-threads 1(afterhost::recycle::tests::sizes_go_to_powers_of_two_from_64_kib), on this head and on mainf2bccf656alike; run alone it passes in 0.29 s. It does not come from this change: the same test also stalls on mainf2bccf656(554 tests ran, 420 s timeout, same--test-threads 1). The runs were stopped at their timeouts (this head: 300 s; main: 420 s); logs not kept. So the workspace test is not green; whether the newgameinput.rstests ran in that pass was not checked (the per-crate output was filtered).cargo xtask policy: not run. No CI ran (there is no CI upstream).wheel_hold_stepover a closed, open, held, released sequence, andwheel_hold_is_asked_for_with_exactly_one, both ingameinput.rs.up-play-nextat960f6a116, which carriese950d163eandd1da57e19(the code commits of this change, with the README/findings commit695ff7d49). Their words (2026-12-03): "I also tested hold right click ingame"; they did not describe the result. That build is not this PR's head:960f6a116is not5cfac73cb, it carries many other changes of ours, and the three wheel commits there have other hashes than the PR's (93761841a,7ec8f4133,5cfac73cb). The lines changed undercrates/are identical in both sets of commits (compared withgit diff); only a blank line in the docs differs. The latest run's log header on that build (2026-12-03 03:57 UTC) listsDARNER_WHEEL_HOLD=1. Earlier, the user also confirmed it on our play build (their words, 2026-12-03: "I confirm it works"): first as564958b35..9b9fdbd70onup-play-main(cut from main8050243e0, launched 2026-12-02 21:46 and 22:39), later ase950d163e..d1da57e19onup-play-next. Which exe was running at that confirmation is not logged. Details beyond the above were not given or recorded (timings, frame rates, resolution, other seats). The play presets use Series S + DLSS performance with FSR 3 frame generation 2x (presets/play-main-ui.ps1, play-next.ps1).overlay_mouse_mapping, not a recording. After, the user's earlier confirmation ("I confirm it works"); for the newer test they said only that they tested it. Nothing else was measured.cargo xtask policy; a green workspace test (see the hang above).Checklist
main.docs/asset-policy.md.Spec dependence
Our PC: RTX 2070 SUPER 8 GB (Turing, wave32), Ryzen 7 5800X, 32 GB RAM, Resizable BAR off, Windows 11 Insider build 26320, NVIDIA driver 621.40. Profile of the play presets: Series S, DLSS performance, FSR 3 frame generation 2x.
The change is in the input path (no GPU, no shader), so no card dependence is expected, but it was tested on this one PC only. It needs MOUSE AND KEYBOARD with the native mouse on, and only acts in the driver seat.
Checked for overlap
WHEEL_HOLD: nothing. The one open pull request (#3, ray tracing mode in F1) changeshost/menu.rs,host/panel.rsandhwrt.rs: none of this change's files (gameinput.rs,ab.rs,lib.rs,README.md,docs/findings.md). Earlier CodeFloe searches (not migrated) found no report of this loop; two feature requests there, CodeFloe #133 (rebinding in native mouse mode) and #83 (an action-based keyboard and mouse preset), were about other things. Onmainsincef2bccf656,gameinput.rschanged ine6e3a4cb3(PlayStation prompts),b08cc0f77(keyboard layout prompts),c3824b341(DARNER_BINDINGS_ONLY),d8e42e719(DARNER_TRAINER) andd77869c52(look keys inbindings.ini); the trial merge takesgameinput.rswithout a conflict. Our other re-filed PR on the same file, from branchup-key-trigger-fix, changesfallback_for_seat, not the wheel.This change was made with AI assistance (Claude Code).
darner rig, F1 AUTO-DETECT row, per-start switches (DARNER_AUTO_SWITCHES, on by default, =0 turns it off) #25Merged into
mainby780c9353c(780c9353c, "Merge PR #6"), so this is done; closing.Pull request closed