public void Unbind() { using (List <RgbKey> .Enumerator enumerator = this._rgbKeys.GetEnumerator()) { while (enumerator.MoveNext()) { RgbKey current = enumerator.Current; Main.Chroma.UnbindKey((Keys)current.Key); } } }
public virtual void Render(IEnumerable <RgbKey> keys) { using (IEnumerator <RgbKey> enumerator = keys.GetEnumerator()) { while (((IEnumerator)enumerator).MoveNext()) { RgbKey current = enumerator.Current; int num; if (this._keyCodeMap.TryGetValue((Keys)current.Key, out num)) { ((RgbDevice)this).SetLedColor(num, current.get_CurrentColor().ToVector4()); } } } }
public void Bind() { this._rgbKey = Main.Chroma.BindKey(this.XNAKey); }
public void Bind() { _rgbKey = Main.Chroma.BindKey(XNAKey); }