controls: add live F10 -> Controls editor and 1-button Focus (LS+RS) #150
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/gamingwithhomie--larp!150
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-150"
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?
@greedtv92 on GitHub · 2026-12-05 19:47 UTC · original
greedtv92:feat/f10-controls-editor→main· +1460 −162 · 4 files · 1 commits · merged 2026-12-05 22:35 UTCRebased cleanly onto latest
main(reconciling PR#96's new-look settings panel,keyboard_driving,taps, andmaps_keys()handoff) and adds a live Controls tab to the classicF10overlay backed bycontrols.ini, plus a dedicated 1-button Focus / Special (LS+RS) binding.Summary
F10 -> Controlstab (crates/larp-hle/src/settings/menu.rs,settings.rs,modules/gameinput.rs,modules/gameinput/mouse.rs):enabled,sensitivity,invert_y,wheel_invert,vehicle_auto_center) plus[/]live sensitivity hotkeys while captured.upsert_ini_keypersistence tocontrols.ini(atomic write via.ini.newrename).Mouse3/Mouse4/Mouse5),Deleteto unbind,Escto cancel, and GTA Standard PC / Standard FPS (crouch=Shift, sprint=Ctrl) presets.#96(STYLE_ROWswitching between Classic and New Look,from_pad,Q/E/Space/Fmenu navigation safely ignored while actively capturing a rebind, andwait_releasechecks onlyCONFIRM+raw_vksso controller stick drift never stalls rebinding).LS+RS) (focus = CapsLockdefault, live-rebindable toMouse4/Mouse5/Mouse3or any key):LEFT_STICK | RIGHT_STICKsimultaneously for single-button Focus/Special activation.MB_X1 -> LB,MB_X2 -> RB, orMB_MIDDLE -> RSmapping only when that specific mouse button is explicitly bound to an action (leaving upstream default mouse buttons completely unchanged otherwise).CONFIG_REVthread-localArc<Bindings>snapshot cache andAtomicBoolsettings::is_open()so the 8 ms input poll and raw-input handler never contend on mutexes.Verification
cargo test -p larp-hle --lib: 63 passed, 0 failed (includingfocus_presses_ls_and_rs_and_mouse4_override_suppresses_default_lb,upsert_ini_key_preserves_comments_and_deduplicates_aliases,prompts_get_the_keys_that_drive_each_control,settings::look::tests::paints, andsettings::extra::tests::every_start_option_has_a_default_first_and_distinct_values).cargo check -p larp: clean build with zero new warnings.Focus (LS+RS)onCapsLockandMouse4live in-game on build1.0.2.1.00416ccd63to0de055ceebcontrols: add live F10 -> Controls editor backed by controls.inito controls: add live F10 -> Controls editor and 1-button Focus (LS+RS)0de055ceebtoc5b0854949@compl3xity1337 on GitHub · 2026-12-06 01:24 UTC · original
Tested merged with current main (after #96) and #153: the Controls tab works (live rebind, reset). It conflicts with #96's menu. What worked for us: keep #96's
showas the dispatcher (new look, elseshow_classic) and make this PR's panelshow_classic; keep the style row on the Picture tab;closedoes bothlook.choosing = Noneandset_menu_open(false);menu_inputkeeps main's shape and callsinput_with_keys; drop the secondvehicle_auto_center().