diogotr7 / OpenRGB.NET

C# client for the OpenRGB SDK
MIT License
40 stars 16 forks source link

Support for updating device mode #6

Closed cobrafast closed 4 years ago

cobrafast commented 4 years ago

Would be nice to be able to switch between the predefined modes in Device.Modes, e.g. update Device.ActiveModeIndex.

Or alternatively something like OpenRGBClient.UpdateMode(int deviceId, int modeId).

OpenRGB-PyClient seems to be able to do it, but I have no idea how to port the code: https://github.com/bahorn/OpenRGB-PyClient/blob/master/openrgb/OpenRGB.py#L94

I would highly appreciate it if this could be implemented.

diogotr7 commented 4 years ago

I added the function and tested it briefly on my G810. would be helpful if you could test it as well.

cobrafast commented 4 years ago

Yup, works for my Asus Aura controllers as well. Thank you very much!

diogotr7 commented 4 years ago

Just pushed another commit that should let you set speed, direction, and colors on this set mode method. If you could test it it would help. Seems to work fine on my g810 with breathing and static modes.