Created
March 8, 2015 13:06
-
-
Save brandonscott/7e1558250a5b43e608d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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