Skip to content

Add active binding highlighting support#26

Merged
sile merged 15 commits intomainfrom
ongoing-action
Sep 4, 2025
Merged

Add active binding highlighting support#26
sile merged 15 commits intomainfrom
ongoing-action

Conversation

@sile
Copy link
Copy Markdown
Owner

@sile sile commented Sep 4, 2025

No description provided.

@sile sile requested a review from Copilot September 4, 2025 13:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds visual feedback for ongoing key bindings in the legend widget through highlighting, along with API refactoring to use the new mame BindingConfig system.

  • Adds highlight_active_binding option to enable/disable visual highlighting of active bindings
  • Migrates from ActionBindingSystem to the newer BindingConfig API from mame 0.2.3
  • Refactors legend widget fields to be public and removes the init method

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/widget_legend.rs Adds highlighting logic for active bindings and changes API to accept binding arrays
src/main.rs Updates to use BindingConfig instead of ActionBindingSystem
src/app.rs Implements binding tracking and highlighting behavior with new API
src/action.rs Adds highlight_active_binding field to InitLegend action
configs/sile.jsonc Enables highlighting in configuration
Cargo.toml Updates mame and nojson dependencies

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sile sile merged commit 6b43941 into main Sep 4, 2025
9 checks passed
@sile sile deleted the ongoing-action branch September 4, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants