RgbLights class
#include <Jazz2/Input/RgbLights.h>
Provides access to RGB lights from various peripherals.
Drives the per-key and accent RGB lighting of supported peripherals (such as Razer Chroma keyboards, or a browser bridge on Emscripten), pushing updated colors and clearing them on shutdown. Exposed as a single shared instance via Get().
Public static functions
Constructors, destructors, conversion operators
- RgbLights()
- Creates a new instance.
- ~RgbLights()
Public functions
- auto IsSupported() const -> bool
- Returns
trueif the feature is supported. - void Update(Color colors[ColorsSize])
- Updates colors of the lights.
- void Clear()
- Resets colors of the light to default settings.
Constants
-
static std::
int32_t ColorsSize constexpr - Maximum number of individual lights.
-
static std::
int32_t RefreshRate constexpr - Refresh rate of the lighting.