Skip to content

Add media control bindings for button mappings#1

Merged
prgmitchell merged 2 commits intoprgmitchell:mainfrom
philipritzer:feature/media-controls
Mar 19, 2026
Merged

Add media control bindings for button mappings#1
prgmitchell merged 2 commits intoprgmitchell:mainfrom
philipritzer:feature/media-controls

Conversation

@philipritzer
Copy link
Contributor

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

philipritzer and others added 2 commits March 6, 2026 18:31
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
@prgmitchell
Copy link
Owner

Hello @philipritzer thanks so much for the PR. I have added a commit fixing the the github action was failing on in regards to formatting and added some icons. I will merge this now and create a new release after a few changes of my own in the near future.

@prgmitchell prgmitchell merged commit 4cfa4b9 into prgmitchell:main Mar 19, 2026
2 checks passed
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