mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-10 20:46:24 +00:00
Renamed mousemat to mousepad
This commit is contained in:
1 parent
cc40f3b75b
commit
15598ab975
12 files changed
+33
-32
No files matched your search
@@ -161,8 +161,8 @@ namespace RGB.NET.Devices.Corsair
|
||||
case CorsairDeviceType.Headset:
|
||||
device = new CorsairHeadsetRGBDevice(new CorsairHeadsetRGBDeviceInfo(i, nativeDeviceInfo));
|
||||
break;
|
||||
case CorsairDeviceType.Mousemat:
|
||||
device = new CorsairMousematRGBDevice(new CorsairMousematRGBDeviceInfo(i, nativeDeviceInfo));
|
||||
case CorsairDeviceType.Mousepad:
|
||||
device = new CorsairMousepadRGBDevice(new CorsairMousepadRGBDeviceInfo(i, nativeDeviceInfo));
|
||||
break;
|
||||
// ReSharper disable once RedundantCaseLabel
|
||||
case CorsairDeviceType.Unknown:
|
||||
|
||||
@@ -15,6 +15,6 @@ namespace RGB.NET.Devices.Corsair
|
||||
Mouse = 1,
|
||||
Keyboard = 2,
|
||||
Headset = 3,
|
||||
Mousemat = 4
|
||||
Mousepad = 4
|
||||
};
|
||||
}
|
||||
@@ -10,7 +10,7 @@ using RGB.NET.Devices.Corsair.Native;
|
||||
namespace RGB.NET.Devices.Corsair
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a generic CUE-device. (keyboard, mouse, headset, mousmat).
|
||||
/// Represents a generic CUE-device. (keyboard, mouse, headset, mousepad).
|
||||
/// </summary>
|
||||
public abstract class CorsairRGBDevice : AbstractRGBDevice
|
||||
{
|
||||
|
||||
+11
-11
@@ -11,29 +11,29 @@ using RGB.NET.Devices.Corsair.Native;
|
||||
namespace RGB.NET.Devices.Corsair
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a corsair mousemat.
|
||||
/// Represents a corsair mousepad.
|
||||
/// </summary>
|
||||
public class CorsairMousematRGBDevice : CorsairRGBDevice
|
||||
public class CorsairMousepadRGBDevice : CorsairRGBDevice
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
/// <summary>
|
||||
/// Gets information about the <see cref="CorsairMousematRGBDevice"/>.
|
||||
/// Gets information about the <see cref="CorsairMousepadRGBDevice"/>.
|
||||
/// </summary>
|
||||
public CorsairMousematRGBDeviceInfo MousematDeviceInfo { get; }
|
||||
public CorsairMousepadRGBDeviceInfo MousepadDeviceInfo { get; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CorsairMousematRGBDevice"/> class.
|
||||
/// Initializes a new instance of the <see cref="CorsairMousepadRGBDevice"/> class.
|
||||
/// </summary>
|
||||
/// <param name="info">The specific information provided by CUE for the mousemat</param>
|
||||
internal CorsairMousematRGBDevice(CorsairMousematRGBDeviceInfo info)
|
||||
/// <param name="info">The specific information provided by CUE for the mousepad</param>
|
||||
internal CorsairMousepadRGBDevice(CorsairMousepadRGBDeviceInfo info)
|
||||
: base(info)
|
||||
{
|
||||
this.MousematDeviceInfo = info;
|
||||
this.MousepadDeviceInfo = info;
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -45,7 +45,7 @@ namespace RGB.NET.Devices.Corsair
|
||||
{
|
||||
_CorsairLedPositions nativeLedPositions =
|
||||
(_CorsairLedPositions)
|
||||
Marshal.PtrToStructure(_CUESDK.CorsairGetLedPositionsByDeviceIndex(MousematDeviceInfo.CorsairDeviceIndex),
|
||||
Marshal.PtrToStructure(_CUESDK.CorsairGetLedPositionsByDeviceIndex(MousepadDeviceInfo.CorsairDeviceIndex),
|
||||
typeof(_CorsairLedPositions));
|
||||
|
||||
int structSize = Marshal.SizeOf(typeof(_CorsairLedPosition));
|
||||
@@ -63,8 +63,8 @@ namespace RGB.NET.Devices.Corsair
|
||||
InitializeLed(new CorsairLedId(this, ledPosition.ledId),
|
||||
new Rectangle(ledPosition.left, ledPosition.top, ledPosition.width, ledPosition.height));
|
||||
|
||||
ApplyLayoutFromFile(PathHelper.GetAbsolutePath($@"Layouts\Corsair\Mousemats\{MousematDeviceInfo.Model.Replace(" ", string.Empty).ToUpper()}.xml"),
|
||||
null, PathHelper.GetAbsolutePath(@"Images\Corsair\Mousemats"));
|
||||
ApplyLayoutFromFile(PathHelper.GetAbsolutePath($@"Layouts\Corsair\Mousepads\{MousepadDeviceInfo.Model.Replace(" ", string.Empty).ToUpper()}.xml"),
|
||||
null, PathHelper.GetAbsolutePath(@"Images\Corsair\Mousepads"));
|
||||
}
|
||||
|
||||
#endregion
|
||||
+7
-7
@@ -5,21 +5,21 @@ using RGB.NET.Devices.Corsair.Native;
|
||||
namespace RGB.NET.Devices.Corsair
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a generic information for a <see cref="CorsairMousematRGBDevice"/>.
|
||||
/// Represents a generic information for a <see cref="CorsairMousepadRGBDevice"/>.
|
||||
/// </summary>
|
||||
public class CorsairMousematRGBDeviceInfo : CorsairRGBDeviceInfo
|
||||
public class CorsairMousepadRGBDeviceInfo : CorsairRGBDeviceInfo
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Internal constructor of managed <see cref="CorsairMousematRGBDeviceInfo"/>.
|
||||
/// Internal constructor of managed <see cref="CorsairMousepadRGBDeviceInfo"/>.
|
||||
/// </summary>
|
||||
/// <param name="deviceIndex">The index if the <see cref="CorsairMousematRGBDevice"/>.</param>
|
||||
/// <param name="deviceIndex">The index if the <see cref="CorsairMousepadRGBDevice"/>.</param>
|
||||
/// <param name="nativeInfo">The native <see cref="_CorsairDeviceInfo" />-struct</param>
|
||||
internal CorsairMousematRGBDeviceInfo(int deviceIndex, _CorsairDeviceInfo nativeInfo)
|
||||
: base(deviceIndex, RGBDeviceType.Mousemat, nativeInfo)
|
||||
internal CorsairMousepadRGBDeviceInfo(int deviceIndex, _CorsairDeviceInfo nativeInfo)
|
||||
: base(deviceIndex, RGBDeviceType.Mousepad, nativeInfo)
|
||||
{
|
||||
Image = new Uri(PathHelper.GetAbsolutePath($@"Images\Corsair\Mousemat\{Model.Replace(" ", string.Empty).ToUpper()}.png"), UriKind.Absolute);
|
||||
Image = new Uri(PathHelper.GetAbsolutePath($@"Images\Corsair\Mousepad\{Model.Replace(" ", string.Empty).ToUpper()}.png"), UriKind.Absolute);
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -160,7 +160,7 @@ namespace RGB.NET.Devices.Corsair.Native
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// CUE-SDK: provides list of keyboard or mousemat LEDs with their physical positions.
|
||||
/// CUE-SDK: provides list of keyboard or mousepad LEDs with their physical positions.
|
||||
/// </summary>
|
||||
internal static IntPtr CorsairGetLedPositionsByDeviceIndex(int deviceIndex)
|
||||
{
|
||||
|
||||
@@ -65,8 +65,8 @@
|
||||
<Compile Include="Keyboard\CorsairKeyboardRGBDeviceInfo.cs" />
|
||||
<Compile Include="Mouse\CorsairMouseRGBDevice.cs" />
|
||||
<Compile Include="Mouse\CorsairMouseRGBDeviceInfo.cs" />
|
||||
<Compile Include="Mousmat\CorsairMousematRGBDevice.cs" />
|
||||
<Compile Include="Mousmat\CorsairMousematRGBDeviceInfo.cs" />
|
||||
<Compile Include="Mousepad\CorsairMousepadRGBDevice.cs" />
|
||||
<Compile Include="Mousepad\CorsairMousepadRGBDeviceInfo.cs" />
|
||||
<Compile Include="Native\_CorsairDeviceInfo.cs" />
|
||||
<Compile Include="Native\_CorsairLedColor.cs" />
|
||||
<Compile Include="Native\_CorsairLedPosition.cs" />
|
||||
@@ -89,10 +89,10 @@
|
||||
<ItemGroup>
|
||||
<Folder Include="Images\Corsair\Headsets\" />
|
||||
<Folder Include="Images\Corsair\Mice\" />
|
||||
<Folder Include="Images\Corsair\Mousemats\" />
|
||||
<Folder Include="Images\Corsair\Mousepads\" />
|
||||
<Folder Include="Layouts\Corsair\Headsets\" />
|
||||
<Folder Include="Layouts\Corsair\Mice\" />
|
||||
<Folder Include="Layouts\Corsair\Mousemats\" />
|
||||
<Folder Include="Layouts\Corsair\Mousepads\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Images\Corsair\Keyboards\K70RGB.png" />
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=libs/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=mousepad/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=native/@EntryIndexedValue">False</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=mousmat/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=mouse/@EntryIndexedValue">True</s:Boolean>
|
||||
|
||||
Reference in new issue
Block a user