diff --git a/Controllers/SteelSeriesController/SteelSeriesApexBaseController.h b/Controllers/SteelSeriesController/SteelSeriesApexBaseController.h index c72b6122..eff0aa55 100644 --- a/Controllers/SteelSeriesController/SteelSeriesApexBaseController.h +++ b/Controllers/SteelSeriesController/SteelSeriesApexBaseController.h @@ -1,20 +1,21 @@ -/*-----------------------------------------*\ -| SteelSeriesApexBaseController.h | -| | -| Base controller for SteelSeries Apex | -| Keyboard lighting controllers | -| | -| Florian Heilmann (FHeilmann) 19/10/2020 | -\*-----------------------------------------*/ - -#include "RGBController.h" -#include "SteelSeriesGeneric.h" - -#include -#include +/*---------------------------------------------------------*\ +| SteelSeriesApexBaseController.h | +| | +| Driver base for SteelSeries Apex | +| | +| Florian Heilmann (FHeilmann) 19 Oct 2020 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #pragma once +#include +#include +#include "RGBController.h" +#include "SteelSeriesGeneric.h" + #define STEELSERIES_PACKET_IN_SIZE 64 #define STEELSERIES_PACKET_OUT_SIZE STEELSERIES_PACKET_IN_SIZE + 1 diff --git a/Controllers/SteelSeriesController/SteelSeriesApexRegions.h b/Controllers/SteelSeriesController/SteelSeriesApexRegions.h index 1d820d46..b2cf0e62 100644 --- a/Controllers/SteelSeriesController/SteelSeriesApexRegions.h +++ b/Controllers/SteelSeriesController/SteelSeriesApexRegions.h @@ -1,22 +1,24 @@ -/*-----------------------------------------*\ -| SteelSeriesApexRegions.h | -| | -| Region specific SKU settings for the | -| Apex 5/7/Pro and TKL keyboards | -| | -| Joseph East (dripsnek) 2021 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| SteelSeriesApexRegions.h | +| | +| Region settings for SteelSeries Apex 5/7/Pro and TKL | +| | +| Joseph East (dripsnek) 2021 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #pragma once -#define NA 0xFFFFFFFF - -#include #include +#include #include #include "RGBController_SteelSeriesApex.h" #include "RGBControllerKeyNames.h" +#define NA 0xFFFFFFFF + /*----------------------------------------------------------------------*\ | As of firmware 4.1.0 there are in total 111 possible standard keys | | which are shared across the Apex Pro / 7 / TKL / 5 and their regional | diff --git a/Controllers/SteelSeriesController/SteelSeriesControllerDetect.cpp b/Controllers/SteelSeriesController/SteelSeriesControllerDetect.cpp index 816d7d95..4767cb43 100644 --- a/Controllers/SteelSeriesController/SteelSeriesControllerDetect.cpp +++ b/Controllers/SteelSeriesController/SteelSeriesControllerDetect.cpp @@ -1,8 +1,16 @@ +/*---------------------------------------------------------*\ +| SteelSeriesControllerDetect.cpp | +| | +| Detector for SteelSeries devices | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include #include "Detector.h" #include "RGBController.h" #include "SteelSeriesGeneric.h" - #include "SteelSeriesAerox5Controller.h" #include "SteelSeriesAerox9Controller.h" #include "SteelSeriesArctis5Controller.h" @@ -16,7 +24,6 @@ #include "SteelSeriesRival3Controller.h" #include "SteelSeriesSenseiController.h" #include "SteelSeriesSiberiaController.h" - #include "RGBController_SteelSeriesArctis5.h" #include "RGBController_SteelSeriesApex.h" #include "RGBController_SteelSeriesApex3.h" @@ -31,6 +38,7 @@ | Vendor ID | \*-----------------------------------------------------*/ #define STEELSERIES_VID 0x1038 + /*-----------------------------------------------------*\ | Mouse product IDs | \*-----------------------------------------------------*/ @@ -64,11 +72,13 @@ #define STEELSERIES_SENSEI_TEN_PID 0x1832 #define STEELSERIES_SENSEI_TEN_CSGO_NEON_RIDER_PID 0x1834 #define STEELSERIES_SENSEI_310_PID 0x1722 + /*-----------------------------------------------------*\ | Headset product IDs | \*-----------------------------------------------------*/ #define STEELSERIES_SIBERIA_350_PID 0x1229 #define STEELSERIES_ARCTIS_5_PID 0x12AA + /*--------------------------------------------------------------*\ | Mousemat product IDs | \*--------------------------------------------------------------*/ @@ -79,6 +89,7 @@ #define STEELSERIES_QCK_PRISM_CLOTH_XL_CSGO_NEO_NOIR_PID 0x151C #define STEELSERIES_QCK_PRISM_CLOTH_3XL_PID 0x1516 #define STEELSERIES_QCK_PRISM_CLOTH_4XL_PID 0x1518 + /*-----------------------------------------------------*\ | Keyboard product IDs | \*-----------------------------------------------------*/ diff --git a/Controllers/SteelSeriesController/SteelSeriesGeneric.h b/Controllers/SteelSeriesController/SteelSeriesGeneric.h index 4c828e1c..f620a2e0 100644 --- a/Controllers/SteelSeriesController/SteelSeriesGeneric.h +++ b/Controllers/SteelSeriesController/SteelSeriesGeneric.h @@ -1,17 +1,19 @@ -/*-----------------------------------------*\ -| SteelSeriesGeneric.h | -| | -| Definitions and types for the SteelSeries| -| Devices. | -| | -| B Horn (bahorn) 17/5/2020 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| SteelSeriesGeneric.h | +| | +| Generic file for SteelSeries devices | +| | +| B Horn (bahorn) 17 May 2020 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once #include #include -#pragma once - /* Allows us to handle variation in the protocol. * Defined in a single enum so we can keep the device_list struct the same * for every possible device. */ diff --git a/Controllers/SteelSeriesController/color32.h b/Controllers/SteelSeriesController/color32.h index 1e83de45..9c065eee 100644 --- a/Controllers/SteelSeriesController/color32.h +++ b/Controllers/SteelSeriesController/color32.h @@ -1,20 +1,20 @@ -/*-----------------------------------------*\ -| color32.h | -| | -| Simple structure to allow passing of | -| 32-bit color data between classes | -| | -| David Lee (RAMChYLD) 15/11/2020 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| color32.h | +| | +| Class to hold 32-bit color data | +| | +| David Lee (RAMChYLD) 15 Nov 2020 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#ifndef COLOR32_H -#define COLOR32_H +#pragma once -typedef struct{ +typedef struct +{ unsigned char red; unsigned char green; unsigned char blue; unsigned char alpha; } color32; - -#endif // COLOR32_H