4using Microsoft.Xna.Framework.Input;
444 for (
int i = 0; i <
_effect.Color.Length; i++)
449 for (
int j = 0;
j <
base.LedCount;
j++)
void SetAsKeyboardEffect(ref NativeMethods.CustomKeyboardEffect effect)
static uint XnaColorToDeviceColor(Color color)
static uint Vector4ToDeviceColor(Vector4 color)
override void Render(IEnumerable< RgbKey > keys)
static readonly Dictionary< Keys, RazerKey > XnaKeyToChromaKey
RazerKeyboard(DeviceColorProfile colorProfile)
readonly EffectHandle _handle
NativeMethods.CustomKeyboardEffect _effect
readonly List< Tuple< RazerKey, uint > > _pendingKeys
Color ProcessLedColor(Color color)
Vector4 GetProcessedLedColor(int index)
static CustomKeyboardEffect Create()