예제 #1
0
        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);
            }
        }
예제 #2
0
 /// <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));
 }
예제 #3
0
 public void Set(Static effect)
 {
     SetStatic(effect);
 }