Update SteelSeries common files to new standardized header format

This commit is contained in:
Adam Honse 2024-07-23 21:11:56 -05:00
parent ef48039a1b
commit a36162a971
5 changed files with 66 additions and 50 deletions

View file

@ -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 <string>
#include <cstring>
/*---------------------------------------------------------*\
| 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 <cstring>
#include <string>
#include "RGBController.h"
#include "SteelSeriesGeneric.h"
#define STEELSERIES_PACKET_IN_SIZE 64
#define STEELSERIES_PACKET_OUT_SIZE STEELSERIES_PACKET_IN_SIZE + 1

View file

@ -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 <string>
#include <map>
#include <string>
#include <vector>
#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 |

View file

@ -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 <hidapi/hidapi.h>
#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 |
\*-----------------------------------------------------*/

View file

@ -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 <string>
#include <hidapi/hidapi.h>
#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. */

View file

@ -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