API Usage
To further reduce overhead, a title can check if supported devices are connected before showing Chroma effects. The IsConnected() method can indicate if supported devices are in use to help determine if Chroma should be active. Games often will include a menu settings option to toggle Chroma RGB support, with being on by default as an additional way that users can minimize overhead.
DEVICE_INFO_TYPE deviceInfo = new DEVICE_INFO_TYPE();
deviceInfo.DeviceType = 255; // all devices
int result = ChromaAnimationAPI.CoreIsConnected(ref deviceInfo);
if (result == RazerErrors.RZRESULT_SUCCESS)
{
if (deviceInfo.Connected > 0)
{
// Chroma devices are connected!
}
else
{
// "No Chroma devices are connected!";
}
}
else
{
// "Unable to check for Chroma devices. Unexpected result!";
}
Still stuck? Come to our Discord and we will help you out!