Example #1
0
 /// <summary>
 /// Sets the color of all LEDs on the mouse.
 /// </summary>
 /// <param name="color">Color to set.</param>
 public override void Set(Color color)
 {
     Set(NativeWrapper.CreateMouseEffect(Led.Logo, new Static {
         Color = color
     }));
 }
Example #2
0
 /// <summary>
 /// Sets a custom effect on the mouse.
 /// </summary>
 /// <param name="effect">An instance of the <see cref="Custom" /> struct.</param>
 public void SetCustom(Custom effect)
 {
     SetGuid(NativeWrapper.CreateMouseEffect(Effect.Custom, effect));
 }
Example #3
0
 /// <summary>
 /// Sets a custom grid effect on the mouse.
 /// </summary>
 /// <param name="effect">An instance of the <see cref="CustomGrid" /> struct.</param>
 public void SetGrid(CustomGrid effect)
 {
     SetGuid(NativeWrapper.CreateMouseEffect(Effect.CustomGrid, effect));
 }
Example #4
0
 /// <summary>
 /// Sets a spectrum cycling effect on the mouse.
 /// </summary>
 /// <param name="effect">Effect options struct.</param>
 public void SetSpectrumCycling(SpectrumCycling effect)
 {
     SetGuid(NativeWrapper.CreateMouseEffect(Effect.SpectrumCycling, effect));
 }
Example #5
0
 /// <summary>
 /// Sets a wave effect on the mouse.
 /// </summary>
 /// <param name="effect">Effect options struct.</param>
 public void SetWave(Wave effect)
 {
     SetGuid(NativeWrapper.CreateMouseEffect(Effect.Wave, effect));
 }
Example #6
0
 /// <summary>
 /// Sets a reactive effect on the mouse.
 /// </summary>
 /// <param name="effect">Effect options struct.</param>
 public void SetReactive(Reactive effect)
 {
     SetGuid(NativeWrapper.CreateMouseEffect(Effect.Reactive, effect));
 }
Example #7
0
 /// <summary>
 /// Starts a blinking effect on the specified LED.
 /// </summary>
 /// <param name="effect">An instance of the <see cref="Blinking" /> effect.</param>
 public void SetBlinking(Blinking effect)
 {
     SetGuid(NativeWrapper.CreateMouseEffect(Effect.Blinking, effect));
 }
Example #8
0
 /// <summary>
 /// Sets a static color on the mouse.
 /// </summary>
 /// <param name="effect">An instance of the <see cref="Static" /> effect.</param>
 public void SetStatic(Static effect)
 {
     SetGuid(NativeWrapper.CreateMouseEffect(Effect.Static, effect));
 }
Example #9
0
 /// <summary>
 /// Sets an effect without any parameters.
 /// Currently, this only works for the <see cref="Effect.None" /> effect.
 /// </summary>
 /// <param name="effect">Effect options.</param>
 public void SetEffect(Effect effect)
 {
     SetGuid(NativeWrapper.CreateMouseEffect(effect, IntPtr.Zero));
 }
Example #10
0
 /// <summary>
 /// Sets a breathing effect on the mouse.
 /// </summary>
 /// <param name="effect">An instance of the <see cref="Breathing" /> effect.</param>
 public void SetBreathing(Breathing effect)
 {
     SetGuid(NativeWrapper.CreateMouseEffect(effect));
 }