Skip to content

Instantly share code, notes, and snippets.

@brandonscott
Created March 8, 2015 13:06
Show Gist options
  • Save brandonscott/7e1558250a5b43e608d4 to your computer and use it in GitHub Desktop.
Save brandonscott/7e1558250a5b43e608d4 to your computer and use it in GitHub Desktop.
NativeMethods.Init();
Guid test = new Guid();
Custom[] testCustoms = new Custom[1];
testCustoms[0].Color = 0xFF32CC;
testCustoms[0].Key = Razer.Keyboard.Key.Enter;
NativeMethods.CreateKeyboardCustomEffects(0, null, ref test);
NativeMethods.SetEffect(test);
NativeMethods.DeleteEffect(test);
if (NativeMethods.CreateKeyboardCustomEffects(1, testCustoms, ref test) == Razer.Result.Success)
{
if (NativeMethods.SetEffect(test) == Result.Success)
{
int df = 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment