input(mouse): map Space to A handbrake, prevent RMB wheel strobe while driving, add F5/F6 hotkeys #246

Manually merged
github merged 1 commit from github-bot/gh-246 into gh-pr/246/base 2026-12-06 00:55:52 +00:00 AGit
Owner

@⁠Lynat1k on GitHub · 2026-12-05 22:05 UTC · original
Lynat1k:pr/kbm-driving-hotkeys → main · +111 −28 · 1 files · 1 commits · merged 2026-12-05 22:51 UTC

Improves opt-in keyboard_driving and live KB+M usability in crates/larp-hle/src/modules/gameinput/mouse.rs without changing any existing opt-in defaults or motorcycle lean (Shift/Ctrl) behavior:

Changes

  • Handbrake on Space while driving: maps Space (0x20) to A (GTA VI's vehicle handbrake) in driver mode and suppresses its on-foot binding so it doesn't also trigger X.
  • No RMB weapon-wheel strobe while driving: stops RMB from pressing LEFT_SHOULDER (LB) in driver mode (the bound LB key still opens the weapon wheel cleanly, and LMB still fires RB when the radial wheel is closed).
  • Live KB+M hotkeys (non-repeat WM_KEYDOWN, ignored while F10 or key-rebind capture is open):
    • F5 — temporarily toggles force on-foot mode (FORCE_ON_FOOT_MODE) for scripted vehicle seats.
    • F6 — manually toggles cursor capture.
  • Unit tests: added 3 unit tests covering Space handbrake suppression, RMB/LMB driving behavior (including radial-wheel guard), and preserved Shift/Ctrl motorcycle lean.

Verification

  • cargo test --release --locked -p larp-hle — 66 passed, 0 failed (0 new warnings).
**@⁠Lynat1k** on GitHub · 2026-12-05 22:05 UTC · [original](https://github.com/gamingwithhomie/larp/pull/246) `Lynat1k:pr/kbm-driving-hotkeys` → `main` · +111 −28 · 1 files · 1 commits · merged 2026-12-05 22:51 UTC Improves opt-in `keyboard_driving` and live KB+M usability in `crates/larp-hle/src/modules/gameinput/mouse.rs` without changing any existing opt-in defaults or motorcycle lean (`Shift`/`Ctrl`) behavior: ### Changes - **Handbrake on `Space` while driving:** maps `Space` (`0x20`) to `A` (GTA VI's vehicle handbrake) in driver mode and suppresses its on-foot binding so it doesn't also trigger `X`. - **No `RMB` weapon-wheel strobe while driving:** stops `RMB` from pressing `LEFT_SHOULDER` (`LB`) in driver mode (the bound `LB` key still opens the weapon wheel cleanly, and `LMB` still fires `RB` when the radial wheel is closed). - **Live KB+M hotkeys** (non-repeat `WM_KEYDOWN`, ignored while `F10` or key-rebind capture is open): - `F5` — temporarily toggles force on-foot mode (`FORCE_ON_FOOT_MODE`) for scripted vehicle seats. - `F6` — manually toggles cursor capture. - **Unit tests:** added 3 unit tests covering `Space` handbrake suppression, `RMB`/`LMB` driving behavior (including radial-wheel guard), and preserved `Shift`/`Ctrl` motorcycle lean. ### Verification - `cargo test --release --locked -p larp-hle` — 66 passed, 0 failed (0 new warnings).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 22:13:33 +00:00
github-bot force-pushed github-bot/gh-246 from 774df06ca1 to eca5641975 2026-12-05 22:46:45 +00:00 Compare
github-bot changed title from input(mouse): map Space to RB handbrake, prevent RMB wheel strobe whi… to input(mouse): map Space to A handbrake, prevent RMB wheel strobe while driving, add F5/F6 hotkeys 2026-12-05 22:55:48 +00:00
github-bot changed target branch from main to gh-pr/246/base 2026-12-05 22:55:54 +00:00
github-bot referenced this pull request from a commit 2026-12-06 00:55:31 +00:00
github manually merged commit eca5641975 into gh-pr/246/base 2026-12-06 00:55:52 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.