Skip to content

Draft: Updates for Plugin API 5, hide controllers rather than unregister them, set virtual flag

Working on updates for Plugin API 5. One of the changes I want to do in this API version is add a CONTROLLER_FLAG_HIDDEN flag to RGBController, which will allow marking controllers as Hidden (and thus UI lists should not show these hidden controllers). This means they don't have to be truly removed from the ResourceManager list, which is a pretty ugly hack that can break things especially when remote controllers are used (as is the case if OpenRGB is running as a background service).

Also, when I added the controller flags field, I designated one of the flags CONTROLLER_FLAG_VIRTUAL to indicate that a controller is virtual. I've set this flag on the virtual VisualMap controllers registered by the plugin.

API 5 changes are described here: CalcProgrammer1/OpenRGB!2935

Edited by Adam Honse

Merge request reports

Loading