Skip to content

feat(client): improve key binding configuration UI - #692

Merged
Purdze merged 8 commits into
PommeMC:masterfrom
ChronosWS:feat/binding-aware-input
Oct 21, 2026
Merged

Purdze merged 8 commits into
PommeMC:masterfrom
ChronosWS:feat/binding-aware-input

Conversation

@ChronosWS

@ChronosWS ChronosWS commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Refactor / code cleanup
  • Performance improvement
  • Chore / tooling
  • Documentation

Summary

Improve the Key Binds screen:

  • Display multiple keyboard, mouse, and controller assignments per action, with independent editing, removal, and reset controls.
  • Show fixed assignments as disabled binding buttons. Fixed inputs remain active in the binding model regardless of editable settings and are not serialized as editable assignments.
  • Highlight non-default conflicting assignments with yellow brackets and a yellow marker. Default assignments are not highlighted.
  • Expand the configurable action catalog and show Toggle Overlay and Debug Modifier first in the Debug category.
  • Add reset-button icons and shared icon-button handling.

Gameplay and navigation input behavior is unchanged. Connecting configured assignments to the remaining hard-coded input paths is outside this PR.

Menu rendering fix

The expanded list can exceed the original fixed vertex-buffer capacity. The upload previously truncated vertices while draw operations still referenced the full geometry. Growable, reusable menu vertex buffers now accommodate the complete geometry and preserve allocations until the frame slot is safe to reuse.

Reference

Multiple assignments and fixed-input controls are Pomme-specific extensions. Existing vanilla-derived category ordering and widget presentation are retained; no new vanilla gameplay behavior is introduced.

Testing

  • Client tests: 837 passed with default features and 837 with no default features.
  • Protocol tests.
  • Release Clippy for client, protocol, and singleplayer.
  • Strict no-default-feature client Clippy.
  • Formatting and whitespace checks.
  • Singleplayer tests: both passed, including the ignored server integration test (cargo test -p pomme-singleplayer -- --include-ignored).
  • Manual Key Binds screen validation.

Reviewers

catalog.rs is almost entirely the default keybindings data.

@github-actions github-actions Bot added bug Something isn't working enhancement New feature or request refactor labels Oct 15, 2026
@ChronosWS
ChronosWS marked this pull request as ready for review October 15, 2026 01:21
@github-actions github-actions Bot added the merge conflict Conflicts with the base branch and needs a merge label Oct 19, 2026
@ChronosWS
ChronosWS force-pushed the feat/binding-aware-input branch from 37e56ad to 882a677 Compare October 20, 2026 12:52
@github-actions github-actions Bot removed the merge conflict Conflicts with the base branch and needs a merge label Oct 20, 2026
@github-actions github-actions Bot added the merge conflict Conflicts with the base branch and needs a merge label Oct 21, 2026
@github-actions github-actions Bot removed the merge conflict Conflicts with the base branch and needs a merge label Oct 21, 2026
@Purdze
Purdze merged commit 7f30dc3 into PommeMC:master Oct 21, 2026
15 checks passed
@Purdze Purdze mentioned this pull request Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants