Skip to content

Add media control bindings for button mappings#1

Open
philipritzer wants to merge 1 commit intoprgmitchell:mainfrom
philipritzer:feature/media-controls
Open

Add media control bindings for button mappings#1
philipritzer wants to merge 1 commit intoprgmitchell:mainfrom
philipritzer:feature/media-controls

Conversation

@philipritzer
Copy link

Summary

  • Adds a new "Media Controls" target alongside Master/Focus
    for button (Toggle mode) bindings
  • Simulates Windows media key presses (Play/Pause, Next Track,
    Previous Track, Stop) via the SendInput API
  • Fixes a bug where the action selection was always overridden
    to ToggleMute for button bindings

Test plan

  • Create a button binding, verify "Media Controls" appears
    as a target option (not visible for fader/CC bindings)
  • Select Media Controls → verify action menu shows only
    media actions (no Toggle Mute)
  • Bind a MIDI button to Media Play/Pause → verify system
    media playback toggles on press
  • Verify existing Toggle Mute bindings still work as before
  • Verify profiles save/load correctly with new action types

Adds a new "Media Controls" target for button bindings that
simulates Windows media key presses via the SendInput API.

- New BindingTarget::MediaControl and four BindingAction variants
- Media Controls target only appears for button (Toggle) bindings
- Action menu shows Play/Pause, Next Track, Previous Track, Stop
- Fix: hardcoded ToggleMute override now respects selected action
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.

1 participant