Skip to content

OpenRGB: map "Key: Media Volume -" and "Key: Media Volume +" - #462

Open
Chaos02 wants to merge 1 commit into
DarthAffe:Developmentfrom
Chaos02:openrgb-volume-key-mapping
Open

Chaos02 wants to merge 1 commit into
DarthAffe:Developmentfrom
Chaos02:openrgb-volume-key-mapping

Conversation

@Chaos02

@Chaos02 Chaos02 commented Nov 22, 2026

Copy link
Copy Markdown

Hi, and thanks for RGB.NET!

OpenRGB names the volume key LEDs Key: Media Volume - and Key: Media Volume + (RGBControllerKeyNames.cpp). LedMappings.DEFAULT maps the other media keys but not these two. So they end up as Keyboard_CustomN, although LedId.Keyboard_MediaVolumeDown and Keyboard_MediaVolumeUp exist.

With this PR, the two volume key LEDs get those ids.

How checked:

  • A Keychron K10 Max through the OpenRGB 1.1 SDK reports both names (read on 2026-11-21, Windows 11).
  • On 2026-11-22 I built the OpenRGB provider from Development with this change and checked the same keyboard. The check was read-only and not a full provider run. A small probe built the device objects the way the provider does. It didn't call LoadDevices, so nothing was sent to the keyboard. Before, the two volume LEDs were Keyboard_Custom7 and Keyboard_Custom8. After, they are Keyboard_MediaVolumeDown and Keyboard_MediaVolumeUp.

For the reviewer:

  • Unmapped LEDs get Keyboard_CustomN ids in scan order. On a keyboard with volume LEDs, every unmapped LED after them moves down by two Custom numbers. Apps that saved per-LED settings by Custom id would need to redo them for those LEDs.
  • The same keyboard also reports Key: F13 to Key: F16. LedId has no members for F13 and up, so I left them out. Would you like LedId entries for them, or should they stay Custom?

Map "Key: Media Volume -" and "+" to Keyboard_MediaVolumeDown/Up instead of Custom ids.
Copilot AI balanced review requested due to automatic review settings November 22, 2026 21:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

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.

3 participants