private void DisplayHeadset(ColorScheme scheme) { var saveStateColor = new Color(scheme[KeyCode.F5].r, scheme[KeyCode.F5].g, scheme[KeyCode.F5].b); if (saveStateColor.R == 1f && saveStateColor.G == 0f && saveStateColor.B == 0f) { this.headSetGrid = new Static(Color.Red); } else { this.headSetGrid = new Static(Color.Green); } }
/// <summary> /// Sets a new static effect on the headset. /// </summary> /// <param name="effect"> /// An instance of the <see cref="Static" /> struct /// describing the effect. /// </param> public void SetStatic(Static effect) { SetGuid(NativeWrapper.CreateHeadsetEffect(Effect.Static, effect)); }
public void Set(Static effect) { SetStatic(effect); }