Key-cap prompts show the keys mouse & keyboard actually binds (#62) #118
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!118
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-118"
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?
@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 mergingWith 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 19:03 UTC · original
Closed because of PR #113
Pull request closed