Mouse & keyboard: default keys follow GTA 6's Default control scheme #114

Open
github-bot wants to merge 1 commit from github-bot/gh-114 into main AGit
Owner

@⁠compl3xity1337 on GitHub · 2026-12-05 18:56 UTC · original
compl3xity1337:pr/mnk-controls → main · +76 −65 · 3 files · 1 commits · open

Reworked per your review: this is now only the on-foot key layout, rebased on current main (deb2a0d). The per-seat keys and Controls page are no longer in this PR: #150 covers the editor, and per-seat keys will come as a separate opt-in PR once #150/#153 have landed.

Why: the defaults follow GTA V's pad layout, but GTA 6's Default scheme gives those buttons other jobs. Today Shift jumps, Space presses X (reload/melee), Ctrl presses L3 (run) and M pauses instead of opening the map.

This changes defaults (explicitly): Space = jump (A), Shift = run/sprint (L3), R = reload/melee (X), C/Ctrl = crouch (B), F/E = interact/vehicle (Y), M = map (View), V = change camera (d-pad down + X), Mouse 5 = focus (L3+R3, was RB; Q still covers), G = d-pad right.

Compatibility: existing controls.ini names keep their meaning (sprint = SHIFT now really sprints); pad-button names (a, ls, ...) still bind those buttons; interact is now part of Y.

Tested: played on foot with every key; key-cap prompts show the new keys; cargo test -p larp-hle --lib 59/59. It overlaps #150 only in the key table, and I'm happy to rebase either way.

🤖 Generated with Claude Code

**@⁠compl3xity1337** on GitHub · 2026-12-05 18:56 UTC · [original](https://github.com/gamingwithhomie/larp/pull/114) `compl3xity1337:pr/mnk-controls` → `main` · +76 −65 · 3 files · 1 commits · open Reworked per your review: this is now only the on-foot key layout, rebased on current main (deb2a0d). The per-seat keys and Controls page are no longer in this PR: #150 covers the editor, and per-seat keys will come as a separate opt-in PR once #150/#153 have landed. **Why:** the defaults follow GTA V's pad layout, but GTA 6's Default scheme gives those buttons other jobs. Today Shift jumps, Space presses X (reload/melee), Ctrl presses L3 (run) and M pauses instead of opening the map. **This changes defaults (explicitly):** Space = jump (A), Shift = run/sprint (L3), R = reload/melee (X), C/Ctrl = crouch (B), F/E = interact/vehicle (Y), M = map (View), V = change camera (d-pad down + X), Mouse 5 = focus (L3+R3, was RB; Q still covers), G = d-pad right. **Compatibility:** existing `controls.ini` names keep their meaning (`sprint = SHIFT` now really sprints); pad-button names (`a`, `ls`, ...) still bind those buttons; `interact` is now part of Y. **Tested:** played on foot with every key; key-cap prompts show the new keys; `cargo test -p larp-hle --lib` 59/59. It overlaps #150 only in the key table, and I'm happy to rebase either way. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- controls.ini actions with scopes: on foot, driving, bicycle, aircraft, menus. The
  player's seat (driver, cyclist, pilot, menus) is read from the title's memory
  (apps/larp/src/seat.rs, as Darner reads it) and picks which keys do what.
- Default layout follows the game's Default scheme: LMB shoot, RMB aim, Space jump,
  C/Ctrl crouch, R melee, F/E interact, Tab/Mouse4 loadout, Q cover, Shift sprint,
  MMB look behind, Mouse5 Focus (LS+RS), V camera (d-pad down + X), M map.
- At the wheel W/S are throttle and brake, Space the handbrake, Shift/Ctrl lean;
  on a bicycle Shift pedals faster, Space hops, Ctrl/Alt lean; in aircraft
  W/S throttle and Shift/Ctrl pitch; drive-by on the mouse; Q/E switch menu tabs.
- Key-cap prompts come from controls.ini, one drawing of the icon movie per seat.
- F10 menu: a Controls tab (tabs row) lists every action; Enter takes the next key or
  mouse button, Ins adds one, Del puts back the default, and a line resets every key.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 19:01:11 +00:00
Author
Owner

@⁠gamingwithhomie on GitHub · 2026-12-05 19:12 UTC · original

Reviewed - holding: overlaps the merged #46/#78/#86 input work and the new #113, and currently conflicts with main. Please rebase on current main and coordinate with #113 (one keyboard/mouse scheme PR at a time) - the per-seat GTA keys + F10 Controls page are a good direction, we just need it isolated and testable. Thank you!

**@⁠gamingwithhomie** on GitHub · 2026-12-05 19:12 UTC · [original](https://github.com/gamingwithhomie/larp/pull/114#issuecomment-7443786912) Reviewed - holding: overlaps the merged #46/#78/#86 input work and the new #113, and currently conflicts with main. Please rebase on current main and coordinate with #113 (one keyboard/mouse scheme PR at a time) - the per-seat GTA keys + F10 Controls page are a good direction, we just need it isolated and testable. Thank you!
github-bot changed title from Mouse and keyboard: GTA 6 Default-scheme keys by seat, and an F10 Controls page to rebind them to Mouse & keyboard: default keys follow GTA 6's Default control scheme 2026-12-06 01:31:33 +00:00
github-bot force-pushed github-bot/gh-114 from b98bc993b2 to cae6c969f7 2026-12-06 01:31:43 +00:00 Compare
This pull request has changes conflicting with the target branch.
  • crates/larp-hle/src/modules/gameinput/mouse.rs
  • docs/controls.example.ini
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.
git fetch -u origin '+refs/pull/114/head:github-bot/gh-114'
git switch 'github-bot/gh-114'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-114'
git switch 'github-bot/gh-114'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-114'
git switch 'github-bot/gh-114'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-114'
git switch 'main'
git merge --squash 'github-bot/gh-114'
git switch 'main'
git merge --ff-only 'github-bot/gh-114'
git switch 'main'
git merge 'github-bot/gh-114'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.