Key-cap prompts show the keys mouse & keyboard actually binds (#62) #118

Closed
github-bot wants to merge 0 commits from github-bot/gh-118 into main AGit
Owner

@⁠Ssionn on GitHub · 2026-12-05 18:59 UTC · original
Ssionn:fix/keyboard-prompts-follow-bindings → main · +139 −0 · 2 files · 1 commits · closed without merging

With LARP_PROMPTS=keys the prompts were labelled from the stand-in pad's table (larp_core::pad::fallback_key: Y->Y, X->X, RT->C, LS->F, ...), but in the default auto/mnk mode the keyboard is read through controls.ini and its defaults (Y->F, X->Space, RT->LMB/X, LS->Ctrl, ...). prompts::use_bound_keys existed for exactly this but was never called.

mouse::bound_keys() now lists each control's keys from the loaded bindings (mouse buttons included: LMB/RMB for the triggers, MMB, XButton1/2), and the runner hands them to the prompts before the hook is placed. The right stick's directions are the mouse and stay a stick picture. LARP_CONTROLS=pad keeps the stand-in pad's keys, which is what that mode reads.

**@⁠Ssionn** on GitHub · 2026-12-05 18:59 UTC · [original](https://github.com/gamingwithhomie/larp/pull/118) `Ssionn:fix/keyboard-prompts-follow-bindings` → `main` · +139 −0 · 2 files · 1 commits · closed without merging With LARP_PROMPTS=keys the prompts were labelled from the stand-in pad's table (larp_core::pad::fallback_key: Y->Y, X->X, RT->C, LS->F, ...), but in the default auto/mnk mode the keyboard is read through controls.ini and its defaults (Y->F, X->Space, RT->LMB/X, LS->Ctrl, ...). prompts::use_bound_keys existed for exactly this but was never called. mouse::bound_keys() now lists each control's keys from the loaded bindings (mouse buttons included: LMB/RMB for the triggers, MMB, XButton1/2), and the runner hands them to the prompts before the hook is placed. The right stick's directions are the mouse and stay a stick picture. LARP_CONTROLS=pad keeps the stand-in pad's keys, which is what that mode reads.
With LARP_PROMPTS=keys the prompts were labelled from the stand-in pad's
table (larp_core::pad::fallback_key: Y->Y, X->X, RT->C, LS->F, ...), but in
the default auto/mnk mode the keyboard is read through controls.ini and its
defaults (Y->F, X->Space, RT->LMB/X, LS->Ctrl, ...). prompts::use_bound_keys
existed for exactly this but was never called.

mouse::bound_keys() now lists each control's keys from the loaded bindings
(mouse buttons included: LMB/RMB for the triggers, MMB, XButton1/2), and the
runner hands them to the prompts before the hook is placed. The right
stick's directions are the mouse and stay a stick picture. LARP_CONTROLS=pad
keeps the stand-in pad's keys, which is what that mode reads.

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:39 +00:00
github-bot closed this pull request 2026-12-05 19:08:07 +00:00
Author
Owner

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

Closed because of PR #113

**@⁠Ssionn** on GitHub · 2026-12-05 19:03 UTC · [original](https://github.com/gamingwithhomie/larp/pull/118#issuecomment-7443672402) Closed because of PR #113
github-bot referenced this pull request from a commit 2026-12-05 19:14:18 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.