Allows LED illumination configuration on Roccat TalkFX enabled devices
Install-Package Roccat-Talk
ROCCAT™ TALK® FX needs to be installed and running
The LED illumination settings (color, effects) on any TalkFX enabled device can be controlled via the following construct
using (var connection = new TalkFxConnection())
{
connection.SetLedRgb(Zone.Event, KeyEffect.Blinking, Speed.Normal, new Color(255, 105, 180));
connection.RestoreLedRgb();
}
It is important to call RestoreLedRgb
when you're finished controlling the device, so that the user-configured defaults can be restored. Otherwise your settings will remain applied even after your application has terminated.
The LED illumination settings (ON/OFF) on the Ryos keyboard can be controlled via the following construct
using (var connection = new RyosTalkFXConnection())
{
connection.Initialize();
connection.EnterSdkMode();
var keyboardState = new KeyboardState();
keyboardState.AllLedsOn();
connection.SetWholeKeyboardState(keyboardState);
connection.ExitSdkMode()
}
The Ryos keyboard allows for fine grained control over each LED and therefore has a more specific set of API methods.
It is important to call ExitSdkMode
when you're finished controlling the device, so that the user-configured defaults can be restored. Otherwise your settings will remain applied even after your application has terminated.
The control of the keyboard is made by communicating with the ROCCAT™ TALK® FX and using the ROCCAT™ TALK® FX SDK.
Since the SDK comprises of an unmanaged C++ class that cannot be used directly in .NET, a wrapper was needed, talkfx-c-wrapper was used.
Upon installing the nuget package, a directory labeled CroccatTalkWrapper will be added your solution. This will contain the aforementioned wrapper, which is expected to be present in the output directory.
Pull requests are welcomed. The code is tested using the Ryos ISKU FX keyboard, and could use some realworld testing on a Ryos keyboard.