input: fix radial wheel mouse/scroll, X/Y actions, and scope zoom bindings #123
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!123
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-123"
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?
@hnpf on GitHub · 2026-12-01 22:37 UTC · original
hnpf:fix-radial-wheel-and-zoom-kbm→main· +219 −62 · 4 files · 9 commits · openSummary
WheelStick): AllowIN_WHEELandWHEEL_HOLDto activate and stay active even whenIN_MENU(!action_active(PLAY_ACTION)) is set, and prioritizein_wheeloverin_menu(when!in_map) ingameinput.rs/mouse.rssoWheelStickdrivespad.right_x/pad.right_yinstead of falling back tomenu_stepper.WheelUp/WheelDown): Add aWM_MOUSEWHEELfallback handler inmouse.rs(deduplicated againstWM_INPUTRI_MOUSE_WHEELwithin 50 ms) for setups where Wine/Proton delivers scroll notches viaWM_MOUSEWHEELrather than raw input.R/F(consoleX/Y): WhileIN_WHEELis active, prioritizeINPUT_FRONTEND_X/INPUT_FRONTEND_RLEFT/INPUT_SCRIPT_RLEFT/INPUT_CONTEXT_XforRandINPUT_FRONTEND_Y/INPUT_FRONTEND_RUP/INPUT_SCRIPT_RUP/INPUT_CONTEXT_YforF.INPUT_SNIPER_ZOOM_IN_ONLY/INPUT_SNIPER_ZOOM_IN_SECONDARYtoWheelUpandArrowUp, andINPUT_SNIPER_ZOOM_OUT_ONLY/INPUT_SNIPER_ZOOM_OUT_SECONDARYtoWheelDownandArrowDowninconfig/native-keys.default.txt.Build
victory.exe(./build.sh,releaseprofile forx86_64-pc-windows-msvc).@hnpf on GitHub · 2026-12-02 01:42 UTC · original
whoops, duplicate name for
df7741d. meant to title it as "remove unwanted movement controls for dpad".@2001srikrishna on GitHub · 2026-12-04 07:41 UTC · original
Confirming the wheel X/Y part of this PR fixes the item wheel's "hold LB + X" (eating / using an item) on keyboard.
The full PR no longer applies on current
main(1152b9c), so I rebased only that part: a small helper that, whileIN_WHEELis set, sends F as console X and R as Y (first active X/Y action, else the raw0x3007/0x3004source), tried before the key's own actions. Without it the title switches off the play actions on those keys inside the wheel,resolve_active_sourcesfinds nothing, and the press is dropped (no "key sent" line in the log).Tested in-game (RX 9070 XT, Proton CachyOS 11, native keys): hold Tab → item wheel → F now uses the item.
Minimal diff against
1152b9c, in case it helps land this piece separately:Credit for the approach goes to this PR.
@Luxuride on GitHub · 2026-12-04 12:03 UTC · original
Nine gameplay commits on a 334-commit-old base cannot be reviewed as one thing, and the biggest of them is a competing answer to a question main has already answered — so: split, and the split is not arbitrary.
Two pieces are genuinely missing from main and worth a PR of their own:
let value = if axis && flags == 1 { -1.0 } else { 1.0 };atcrates/victory-loader/src/keyboard_events.rs:1056, andaxis_valueclamps triggers to0.0..=1.0(:516-518), so an inverse-flagged LT binding presses nothing. Yourbound_axis_valuewithis_triggeris the correct fix and has a test.WM_MOUSEWHEELfrom a foreground child window.git grep WM_MOUSEWHEEL main cratesfinds nothing, so wheel input there is still unfixed upstream, and the 50 ms dedup against raw input is the right shape.What should be dropped from this PR:
config/native-keys.default.txton main now ships (pitch on I/K at:39/:42, sniper zoom onRightBracketat:62), and the wheel override hard-codes F→RLEFT (0x3007) while the config binds F throughINPUT_CONTEXT_Y/INPUT_SCRIPT_RUP— one of the two is wrong, and the config is what users are told to edit.arrows_are_dpad()on main (keyboard_events.rs:193). Worth noting:VICTORY_ARROWS_DPADis documented in neitherdocs/SETTINGS.mdnorrun.conf.default, so documenting it is worth more than re-landing it.In what you keep, reuse main's named constants (
const ARROWS: [u32; 4] = [0x25, 0x26, 0x27, 0x28];at:185) instead of0x46/0x52/0x26with comments.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.