vehicle/mousehook: add 1.5s auto-center, cinematic-aware handbrake, and Alt right-stick mode #153
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!153
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-153"
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:51 UTC · original
greedtv92:feat/direct-mouse-driving-and-minigames→main· +574 −89 · 5 files · 1 commits · merged 2026-12-05 23:27 UTCRebased cleanly onto latest
main(post-#150) so all settings and keybinds flow through#150's singleLiveStore+CONFIG_REVcache +build_bindings+F10 -> Controls(zero duplicate config systems on the hot path), while extending upstreamcrates/larp-hle/src/vehicle.rsdirectly with zero duplicate hooks.Summary
AutoCenterMode:on,auto,offstored inLiveStore+controls.inivehicle_auto_center+LARP_VEHICLE_AUTO_CENTER):on(stock title behavior).F10 -> Controls(off / auto (1.5s) / on), selectable in new-looksettings/extra.rs, and cycled live viaF8(persisted viaLiveStore) whenever the auto-center hook is active.handbrake = Space, live-rebindable inF10 -> Controlsincluding Mouse3/4/5 orDeleteto clear) whenkeyboard_driving = 1:A(handbrake) and suppressesXon the shared key during normal driving.camCinematicDirector0x098c_1470, secondary cinematic director0x098c_1478withm_RenderState < 3at+0x258, or any non-camGameplayDirector0x099f_ece8dominant director) and yieldsSpaceback to XboxXwhile keepingRMB/LMBmapped toLT/RTso on-screen promptsENABLE / DISABLE AUTO DRIVE [Space]andSPEED 1 / 2 / 3 [RMB] [LMB]work directly.Alt+ Mouse 360° Right-Stick mode (right_stick_mouse = Alt, live-rebindable inF10 -> Controls, guarded againstAlt+Enter/Alt+Tab, cleared on capture release) underLARP_MOUSE_CAMERA=direct:I/J/K/Ldiagonal right-stick inputs.WM_INPUTmap-open hints with 50 ms staleness guards so high-polling mouse input stays fast without risking stale state in hybrid controller + mouse sessions.Verification
cargo test -p larp-hle --lib: 67 passed, 0 failed (includingvehicle::tests::auto_center_mode_delays_for_1_5s_and_cycles,vehicle::tests::cinematic_camera_active_matches_dominant_director_pointer,mouse::tests::driving_handbrake_sends_a_normally_and_yields_to_x_in_cinematic_mode,mouse::tests::auto_center_mode_parses_all_aliases_and_normalizes_right_stick, andsettings::extra::tests::every_start_option_has_a_default_first_and_distinct_values).cargo check -p larp: clean build with zero new warnings.Space) andSPEED 1 / 2 / 3(RMB/LMB) live in-game on build1.0.2.1.c7a72d0577to000b3d6345mousehook: add 1.5s vehicle auto-center, seat-aware handbrake, and Alt right-stick mode (opt-in)to vehicle/mousehook: add 1.5s auto-center, cinematic-aware handbrake, and Alt right-stick mode000b3d6345tod0d62d3458@gamingwithhomie on GitHub · 2026-12-05 22:33 UTC · original
Tried to merge after #150 (live F10 Controls editor) landed: the two PRs now overlap semantically in
gameinput/mouse.rs- #150 replaced the config snapshot with a liveLiveStore+ revision cache, while this PR stores the same settings in atomics (SENS_BITS/VEHICLE_AUTO_CENTER_MODE/...) and builds its own bindings table, so a textual union would run two config systems on the hot path. Please rebase onto current main (#150 merged) and re-express the three features (1.5s auto-center modes + F8 cycle, seat-aware handbrake, Alt right-stick hold) on top of #150s store/build_bindings- the features themselves are wanted (chat feedback today asked for exactly the vehicle/auto-center polish). Well fast-track the re-review.d0d62d3458todc303d49c0@greedtv92 on GitHub · 2026-12-05 22:50 UTC · original
Rebased onto latest
main(8187e7b, after#150) and re-expressed all three features cleanly on top of#150's singleLiveStore+CONFIG_REVsnapshot cache +build_bindings:AutoCenterMode(on/auto/off) now lives inLiveStore(singleVEHICLE_AUTO_CENTER_MODEatomic synced tovehicle::set_auto_center_mode), editable live in classicF10 -> Controls(off / auto (1.5s) / on), selectable insettings/extra.rs, and cycled viaF8throughset_vehicle_auto_center_mode.handbrake(defaultSpace) andright_stick_mouse(defaultAlt) are now built inside#150'sbuild_bindings, evaluated ineval_buttons(including Mouse3/4/5 override scoping), and live-rebindable inF10 -> Controls.Space->X+RMB/LMB->LT/RTforSPEED 1 / 2 / 3) verified live in-game on1.0.2.1.cargo test -p larp-hle --lib(67/67 passed) andcargo check -p larpare clean — ready for re-review!dc303d49c0to449414335f@compl3xity1337 on GitHub · 2026-12-06 01:24 UTC · original
Tested on current main merged with #150: F8 auto-centre cycling and the Space handbrake work. Note: main's #134 hooks the same auto-centre call (0x1407c5ee1), so whichever installs second skips (the byte check catches it); one owner might be cleaner. Alt right-stick mode is hard to tell apart outside a minigame; detecting minigames automatically, if the game exposes a flag, might beat holding Alt.