Exit / hand back control commands

Feature Request

I've been investigating a couple of different issues on 2 very different devices:

  1. #1264 (closed)
  2. #1425

And it seems to me that at least those 2 devices (Asus Motherboard and Corsair K55 RGB Keyboard) would benefit from a way to send a command to them when OpenRGB is exiting / being closed.

For the ASUS motherboard, we'd need to send back a command to put the LED in the state it was before OpenRGB took control. For the Corsair RGB Keyboard, we'd need to send a couple of commands to put it back in "hardware" mode (which is also what iCue does when it's closed) so that the user can control LEDs using hardware keys, etc.

So I'm sorry if this is not the right away to ask, but I'd like to know whether OpenRGB already defines some kind of interface that individual device controllers can implement with a method that is going to be called when OpenRGB quits.

Edited by Felipe Guaycuru