Esempio n. 1
0
 /// <summary>
 /// Sets a spectrum cycling effect on this device.
 /// </summary>
 /// <param name="effect">Effect options.</param>
 public void SetSpectrumCycling(SpectrumCycling effect)
 {
     SetGuid(NativeWrapper.CreateDeviceEffect(DeviceId, Effect.SpectrumCycling, effect));
 }
Esempio n. 2
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));
 }
Esempio n. 3
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));
 }
Esempio n. 4
0
 /// <summary>
 /// Sets a <see cref="Wave" /> effect on the keypad.
 /// </summary>
 /// <param name="effect">An instance of the <see cref="Wave" /> struct.</param>
 public void SetWave(Wave effect)
 {
     SetGuid(NativeWrapper.CreateKeypadEffect(effect));
 }
Esempio n. 5
0
 /// <summary>
 /// Sets a <see cref="Custom" /> effect on the Chroma Link.
 /// </summary>
 /// <param name="effect">An instance of the <see cref="Custom" /> struct.</param>
 public void SetCustom(Custom effect)
 {
     SetGuid(NativeWrapper.CreateChromaLinkEffect(Effect.Custom, effect));
 }
Esempio n. 6
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.CreateKeypadEffect(effect));
 }
Esempio n. 7
0
 /// <summary>
 /// Sets a <see cref="Custom" /> effect on the keypad.
 /// </summary>
 /// <param name="effect">An instance of the <see cref="Custom" /> struct.</param>
 public void SetCustom(Custom effect)
 {
     SetGuid(NativeWrapper.CreateKeypadEffect(effect));
 }
Esempio n. 8
0
 /// <summary>
 /// Updates the device to use the effect pointed to by the specified GUID.
 /// </summary>
 /// <param name="guid">GUID to set.</param>
 public void Set(Guid guid)
 {
     Clear();
     NativeWrapper.SetEffect(guid);
     CurrentEffectId = guid;
 }
Esempio n. 9
0
 /// <summary>
 /// Sets a breathing effect on the keyboard.
 /// </summary>
 /// <param name="effect">Effect options.</param>
 public void SetBreathing(Breathing effect)
 {
     SetGuid(NativeWrapper.CreateKeyboardEffect(Effect.Breathing, effect));
 }
Esempio n. 10
0
 /// <summary>
 /// Clears the current effect on Generic Devices.
 /// </summary>
 public override void Clear()
 {
     SetGuid(NativeWrapper.CreateDeviceEffect(DeviceId, Effect.None, default(None)));
 }
Esempio n. 11
0
 /// <summary>
 /// Sets an effect on this device, taking a parameter.
 /// </summary>
 /// <param name="effect">Effect to set.</param>
 /// <param name="param">Effect-specific parameter to use.</param>
 public void SetEffect(Effect effect, IntPtr param)
 {
     SetGuid(NativeWrapper.CreateEffect(DeviceId, effect, param));
 }
Esempio n. 12
0
 /// <summary>
 /// Sets a wave effect on this device.
 /// </summary>
 /// <param name="effect">Effect options.</param>
 public void SetWave(Wave effect)
 {
     SetGuid(NativeWrapper.CreateDeviceEffect(DeviceId, Effect.Wave, effect));
 }
Esempio n. 13
0
 /// <summary>
 /// Sets a static effect on this device.
 /// </summary>
 /// <param name="effect">Effect options.</param>
 public void SetStatic(Static effect)
 {
     SetGuid(NativeWrapper.CreateDeviceEffect(DeviceId, Effect.Static, effect));
 }
Esempio n. 14
0
 /// <summary>
 /// Sets a starlight effect on this device.
 /// </summary>
 /// <param name="effect">Effect options.</param>
 public void SetStarlight(Starlight effect)
 {
     SetGuid(NativeWrapper.CreateDeviceEffect(DeviceId, Effect.Starlight, effect));
 }
Esempio n. 15
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));
 }
Esempio n. 16
0
 /// <summary>
 /// Sets the color of all keys on the keyboard.
 /// </summary>
 /// <param name="color">Color to set.</param>
 public override void SetAll(Color color)
 {
     _grid.Set(color);
     SetGuid(NativeWrapper.CreateKeyboardEffect(Effect.Custom, _grid));
 }
Esempio n. 17
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));
 }
Esempio n. 18
0
 /// <summary>
 /// Sets a custom grid effect on the keyboard.
 /// </summary>
 /// <param name="effect">Effect options.</param>
 /// <remarks>
 /// This will overwrite the current internal <see cref="Custom" />
 /// struct in the <see cref="Keyboard" /> class.
 /// </remarks>
 public void SetCustom(Custom effect)
 {
     _grid = effect;
     SetGuid(NativeWrapper.CreateKeyboardEffect(Effect.Custom, _grid));
 }
Esempio n. 19
0
 /// <summary>
 /// Sets a <see cref="Breathing" /> effect on the keypad.
 /// </summary>
 /// <param name="effect">An instance of the <see cref="Breathing" /> struct.</param>
 public void SetBreathing(Breathing effect)
 {
     SetGuid(NativeWrapper.CreateKeypadEffect(effect));
 }
Esempio n. 20
0
 /// <summary>
 /// Sets a static color on the keyboard.
 /// </summary>
 /// <param name="effect">Effect options.</param>
 public void SetStatic(Static effect)
 {
     SetGuid(NativeWrapper.CreateKeyboardEffect(Effect.Static, effect));
 }
Esempio n. 21
0
 /// <summary>
 /// Sets a <see cref="Static" /> effect on the keypad.
 /// </summary>
 /// <param name="effect">An instance of the <see cref="Static" /> struct.</param>
 public void SetStatic(Static effect)
 {
     SetGuid(NativeWrapper.CreateKeypadEffect(effect));
 }
Esempio n. 22
0
 /// <summary>
 /// Sets a wave effect on the keyboard.
 /// </summary>
 /// <param name="effect">Effect options.</param>
 public void SetWave(Wave effect)
 {
     SetGuid(NativeWrapper.CreateKeyboardEffect(Effect.Wave, effect));
 }
Esempio n. 23
0
 /// <summary>
 /// Sets an effect without any parameters.
 /// Currently, this only works for the <see cref="Effect.None" /> and <see cref="Effect.Static" /> effects.
 /// </summary>
 /// <param name="effect">Effect options.</param>
 public void SetEffect(Effect effect)
 {
     SetGuid(NativeWrapper.CreateChromaLinkEffect(effect, IntPtr.Zero));
 }
Esempio n. 24
0
 /// <summary>
 /// Prevents a default instance of the <see cref="Chroma" /> class from being created.
 /// </summary>
 private Chroma()
 {
     NativeWrapper.Init();
     _registeredHandle = IntPtr.Zero;
 }
Esempio n. 25
0
 /// <summary>
 /// Sets a <see cref="Static" /> effect on the Chroma Link.
 /// </summary>
 /// <param name="effect">An instance of the <see cref="Static" /> struct.</param>
 public void SetStatic(Static effect)
 {
     SetGuid(NativeWrapper.CreateChromaLinkEffect(Effect.Static, effect));
 }
Esempio n. 26
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));
 }
Esempio n. 27
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));
 }
Esempio n. 28
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));
 }
Esempio n. 29
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));
 }
Esempio n. 30
0
 /// <summary>
 /// Sets a reactive effect on this device.
 /// </summary>
 /// <param name="effect">Effect options.</param>
 public void SetReactive(Reactive effect)
 {
     SetGuid(NativeWrapper.CreateDeviceEffect(DeviceId, Effect.Reactive, effect));
 }