mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-12 17:48:31 +00:00
Fixed some code issues
This commit is contained in:
parent
bee329ff4f
commit
eccf27f359
@ -67,6 +67,7 @@ public class TimerUpdateTrigger : AbstractUpdateTrigger
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TimerUpdateTrigger"/> class.
|
||||
/// </summary>
|
||||
/// <param name="customUpdateData">The update-data passed on each update triggered.</param>
|
||||
/// <param name="autostart">A value indicating if the trigger should automatically <see cref="Start"/> right after construction.</param>
|
||||
public TimerUpdateTrigger(CustomUpdateData? customUpdateData, bool autostart = true)
|
||||
{
|
||||
|
||||
@ -281,7 +281,10 @@ public static class LedMappings
|
||||
//Row 7 is also empty
|
||||
};
|
||||
|
||||
public static readonly LedMapping<int> KeyboardBlackWidowV3 = new()
|
||||
/// <summary>
|
||||
/// Gets the mapping for the Black-Widow V3 keyboard.
|
||||
/// </summary>
|
||||
public static LedMapping<int> KeyboardBlackWidowV3 { get; } = new()
|
||||
{
|
||||
//Row 0 is empty
|
||||
|
||||
@ -310,7 +313,8 @@ public static class LedMappings
|
||||
#region Row 2
|
||||
|
||||
[LedId.Keyboard_Programmable1] = (_Defines.KEYBOARD_MAX_COLUMN * 2) + 1,
|
||||
[LedId.Keyboard_GraveAccentAndTilde] = (_Defines.KEYBOARD_MAX_COLUMN * 2) + 2,
|
||||
[LedId.Keyboard_GraveAccentAndTilde] =
|
||||
(_Defines.KEYBOARD_MAX_COLUMN * 2) + 2,
|
||||
[LedId.Keyboard_1] = (_Defines.KEYBOARD_MAX_COLUMN * 2) + 3,
|
||||
[LedId.Keyboard_2] = (_Defines.KEYBOARD_MAX_COLUMN * 2) + 4,
|
||||
[LedId.Keyboard_3] = (_Defines.KEYBOARD_MAX_COLUMN * 2) + 5,
|
||||
@ -321,7 +325,8 @@ public static class LedMappings
|
||||
[LedId.Keyboard_8] = (_Defines.KEYBOARD_MAX_COLUMN * 2) + 10,
|
||||
[LedId.Keyboard_9] = (_Defines.KEYBOARD_MAX_COLUMN * 2) + 11,
|
||||
[LedId.Keyboard_0] = (_Defines.KEYBOARD_MAX_COLUMN * 2) + 12,
|
||||
[LedId.Keyboard_MinusAndUnderscore] = (_Defines.KEYBOARD_MAX_COLUMN * 2) + 13,
|
||||
[LedId.Keyboard_MinusAndUnderscore] =
|
||||
(_Defines.KEYBOARD_MAX_COLUMN * 2) + 13,
|
||||
[LedId.Keyboard_EqualsAndPlus] = (_Defines.KEYBOARD_MAX_COLUMN * 2) + 14,
|
||||
[LedId.Keyboard_Backspace] = (_Defines.KEYBOARD_MAX_COLUMN * 2) + 15,
|
||||
[LedId.Keyboard_Insert] = (_Defines.KEYBOARD_MAX_COLUMN * 2) + 16,
|
||||
@ -374,8 +379,10 @@ public static class LedMappings
|
||||
[LedId.Keyboard_J] = (_Defines.KEYBOARD_MAX_COLUMN * 4) + 9,
|
||||
[LedId.Keyboard_K] = (_Defines.KEYBOARD_MAX_COLUMN * 4) + 10,
|
||||
[LedId.Keyboard_L] = (_Defines.KEYBOARD_MAX_COLUMN * 4) + 11,
|
||||
[LedId.Keyboard_SemicolonAndColon] = (_Defines.KEYBOARD_MAX_COLUMN * 4) + 12,
|
||||
[LedId.Keyboard_ApostropheAndDoubleQuote] = (_Defines.KEYBOARD_MAX_COLUMN * 4) + 13,
|
||||
[LedId.Keyboard_SemicolonAndColon] =
|
||||
(_Defines.KEYBOARD_MAX_COLUMN * 4) + 12,
|
||||
[LedId.Keyboard_ApostropheAndDoubleQuote] =
|
||||
(_Defines.KEYBOARD_MAX_COLUMN * 4) + 13,
|
||||
[LedId.Keyboard_NonUsTilde] = (_Defines.KEYBOARD_MAX_COLUMN * 4) + 14,
|
||||
[LedId.Keyboard_Enter] = (_Defines.KEYBOARD_MAX_COLUMN * 4) + 15,
|
||||
[LedId.Keyboard_Num4] = (_Defines.KEYBOARD_MAX_COLUMN * 4) + 19,
|
||||
@ -396,9 +403,12 @@ public static class LedMappings
|
||||
[LedId.Keyboard_B] = (_Defines.KEYBOARD_MAX_COLUMN * 5) + 8,
|
||||
[LedId.Keyboard_N] = (_Defines.KEYBOARD_MAX_COLUMN * 5) + 9,
|
||||
[LedId.Keyboard_M] = (_Defines.KEYBOARD_MAX_COLUMN * 5) + 10,
|
||||
[LedId.Keyboard_CommaAndLessThan] = (_Defines.KEYBOARD_MAX_COLUMN * 5) + 11,
|
||||
[LedId.Keyboard_PeriodAndBiggerThan] = (_Defines.KEYBOARD_MAX_COLUMN * 5) + 12,
|
||||
[LedId.Keyboard_SlashAndQuestionMark] = (_Defines.KEYBOARD_MAX_COLUMN * 5) + 13,
|
||||
[LedId.Keyboard_CommaAndLessThan] =
|
||||
(_Defines.KEYBOARD_MAX_COLUMN * 5) + 11,
|
||||
[LedId.Keyboard_PeriodAndBiggerThan] =
|
||||
(_Defines.KEYBOARD_MAX_COLUMN * 5) + 12,
|
||||
[LedId.Keyboard_SlashAndQuestionMark] =
|
||||
(_Defines.KEYBOARD_MAX_COLUMN * 5) + 13,
|
||||
[LedId.Keyboard_RightShift] = (_Defines.KEYBOARD_MAX_COLUMN * 5) + 15,
|
||||
[LedId.Keyboard_ArrowUp] = (_Defines.KEYBOARD_MAX_COLUMN * 5) + 17,
|
||||
[LedId.Keyboard_Num1] = (_Defines.KEYBOARD_MAX_COLUMN * 5) + 19,
|
||||
@ -423,7 +433,8 @@ public static class LedMappings
|
||||
[LedId.Keyboard_ArrowDown] = (_Defines.KEYBOARD_MAX_COLUMN * 6) + 17,
|
||||
[LedId.Keyboard_ArrowRight] = (_Defines.KEYBOARD_MAX_COLUMN * 6) + 18,
|
||||
[LedId.Keyboard_Num0] = (_Defines.KEYBOARD_MAX_COLUMN * 6) + 20,
|
||||
[LedId.Keyboard_NumPeriodAndDelete] = (_Defines.KEYBOARD_MAX_COLUMN * 6) + 21,
|
||||
[LedId.Keyboard_NumPeriodAndDelete] =
|
||||
(_Defines.KEYBOARD_MAX_COLUMN * 6) + 21,
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@ -164,7 +164,7 @@ public class RazerDeviceProvider : AbstractRGBDeviceProvider
|
||||
{ 0x008A, RGBDeviceType.Mouse, "Viper Mini", LedMappings.Mouse, RazerEndpointType.Mouse },
|
||||
{ 0x008D, RGBDeviceType.Mouse, "Naga Left Handed Edition", LedMappings.Mouse, RazerEndpointType.Mouse },
|
||||
{ 0x0091, RGBDeviceType.Mouse, "Viper 8khz", LedMappings.Mouse, RazerEndpointType.Mouse },
|
||||
{ 0x0096, RGBDeviceType.Mouse, "Naga X", RGB.NET.Devices.Razer.LedMappings.Mouse, RazerEndpointType.Mouse },
|
||||
{ 0x0096, RGBDeviceType.Mouse, "Naga X", LedMappings.Mouse, RazerEndpointType.Mouse },
|
||||
|
||||
// Mousepads
|
||||
{ 0x0068, RGBDeviceType.Mousepad, "Firefly Hyperflux", LedMappings.Mousepad, RazerEndpointType.Mousepad },
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using RGB.NET.Core;
|
||||
using RGB.NET.Devices.Wooting.Enum;
|
||||
using RGB.NET.Devices.Wooting.Helper;
|
||||
using RGB.NET.Devices.Wooting.Native;
|
||||
|
||||
namespace RGB.NET.Devices.Wooting.Generic;
|
||||
@ -29,10 +28,13 @@ public class WootingRGBDeviceInfo : IRGBDeviceInfo
|
||||
public object? LayoutMetadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="WootingDeviceType"/> of the <see cref="WootingRGBDevice{TDeviceInfo}"/>.
|
||||
/// Gets the <see cref="Enum.WootingDeviceType"/> of the <see cref="WootingRGBDevice{TDeviceInfo}"/>.
|
||||
/// </summary>
|
||||
public WootingDeviceType WootingDeviceType { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="Enum.WootingLayoutType"/> of the <see cref="WootingRGBDevice{TDeviceInfo}"/>.
|
||||
/// </summary>
|
||||
public WootingLayoutType WootingLayoutType { get; }
|
||||
|
||||
#endregion
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using RGB.NET.Core;
|
||||
using RGB.NET.Devices.Wooting.Enum;
|
||||
using RGB.NET.Devices.Wooting.Generic;
|
||||
|
||||
namespace RGB.NET.Devices.Wooting.Keyboard;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user