Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Render() [2/2]

override void ReLogic.Peripherals.RGB.Razer.RazerKeyboard.Render ( IEnumerable< RgbKey > keys)
inline

Definition at line 426 of file RazerKeyboard.cs.

427 {
428 //IL_0016: Unknown result type (might be due to invalid IL or missing references)
429 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
430 //IL_002b: Unknown result type (might be due to invalid IL or missing references)
431 foreach (RgbKey key in keys)
432 {
433 if (XnaKeyToChromaKey.TryGetValue(key.Key, out var value))
434 {
435 uint item = RazerHelper.XnaColorToDeviceColor(ProcessLedColor(key.CurrentColor));
436 _pendingKeys.Add(Tuple.Create(value, item));
437 }
438 }
439 }
static readonly Dictionary< Keys, RazerKey > XnaKeyToChromaKey
readonly List< Tuple< RazerKey, uint > > _pendingKeys
Color ProcessLedColor(Color color)
Definition RgbDevice.cs:53

References ReLogic.Peripherals.RGB.Razer.RazerKeyboard._pendingKeys, System.Collections.Generic.List< T >.Add(), System.item, System.key, System.keys, ReLogic.Peripherals.RGB.RgbDevice.ProcessLedColor(), System.value, ReLogic.Peripherals.RGB.Razer.RazerHelper.XnaColorToDeviceColor(), and ReLogic.Peripherals.RGB.Razer.RazerKeyboard.XnaKeyToChromaKey.