Repository navigation
Conversation
Map "Key: Media Volume -" and "+" to Keyboard_MediaVolumeDown/Up instead of Custom ids.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi, and thanks for RGB.NET!
OpenRGB names the volume key LEDs
Key: Media Volume -andKey: Media Volume +(RGBControllerKeyNames.cpp).LedMappings.DEFAULTmaps the other media keys but not these two. So they end up asKeyboard_CustomN, althoughLedId.Keyboard_MediaVolumeDownandKeyboard_MediaVolumeUpexist.With this PR, the two volume key LEDs get those ids.
How checked:
Developmentwith 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 callLoadDevices, so nothing was sent to the keyboard. Before, the two volume LEDs wereKeyboard_Custom7andKeyboard_Custom8. After, they areKeyboard_MediaVolumeDownandKeyboard_MediaVolumeUp.For the reviewer:
Keyboard_CustomNids 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.Key: F13toKey: F16.LedIdhas no members for F13 and up, so I left them out. Would you likeLedIdentries for them, or should they stay Custom?