Update SteelSeriesQCKMatController files to new standardized header format

This commit is contained in:
Adam Honse 2024-07-11 22:36:20 -05:00
parent ac1c823ca1
commit dec9081be2
4 changed files with 48 additions and 40 deletions

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_SteelSeriesQCKMat.cpp |
| |
| Generic RGB Interface SteelSeriesQCK |
| Class |
| |
| Edbgon 22/05/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_SteelSeriesQCKMat.cpp |
| |
| RGBController for SteelSeries Mouse |
| |
| Edbgon 22 May 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_SteelSeriesQCKMat.h"

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_SteelSeriesQCKMat.h |
| |
| Generic RGB Interface SteelSeriesQCK |
| Class |
| |
| Edbgon 22/05/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_SteelSeriesQCKMat.h |
| |
| RGBController for SteelSeries Mouse |
| |
| Edbgon 22 May 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,14 +1,16 @@
/*-----------------------------------------*\
| SteelSeriesQCKControllerMat.cpp |
| |
| Generic RGB Interface SteelSeriesQCK |
| Class |
| |
| Edbgon 22/05/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| SteelSeriesQCKControllerMat.cpp |
| |
| Driver for SteelSeries Mouse |
| |
| Edbgon 22 May 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "SteelSeriesQCKMatController.h"
#include <cstring>
#include "SteelSeriesQCKMatController.h"
SteelSeriesQCKMatController::SteelSeriesQCKMatController(hid_device* dev_handle, const char* path)
{
@ -35,7 +37,7 @@ std::string SteelSeriesQCKMatController::GetSerialString()
{
wchar_t serial_string[128];
int ret = hid_get_serial_number_string(dev, serial_string, 128);
if(ret != 0)
{
return("");
@ -69,7 +71,7 @@ void SteelSeriesQCKMatController::SetColors(std::vector<RGBColor> colors)
buf[0x09] = 0x32;
buf[0x0A] = 0xC8;
buf[0x0E] = 0x01;
buf[0x14] = 0xFF;
buf[0x15] = 0x32;
buf[0x16] = 0xC8;
@ -84,7 +86,7 @@ void SteelSeriesQCKMatController::SetColors(std::vector<RGBColor> colors)
buf[0x05] = RGBGetRValue(colors[0]);
buf[0x06] = RGBGetGValue(colors[0]);
buf[0x07] = RGBGetBValue(colors[0]);
buf[0x11] = RGBGetRValue(colors[1]);
buf[0x12] = RGBGetGValue(colors[1]);
buf[0x13] = RGBGetBValue(colors[1]);

View file

@ -1,18 +1,20 @@
/*-----------------------------------------*\
| SteelSeriesQCKControllerMat.h |
| |
| Generic RGB Interface SteelSeriesQCK |
| Class |
| |
| Edbgon 22/05/2021 |
\*-----------------------------------------*/
#include "RGBController.h"
#include <string>
#include <hidapi/hidapi.h>
/*---------------------------------------------------------*\
| SteelSeriesQCKControllerMat.h |
| |
| Driver for SteelSeries Mouse |
| |
| Edbgon 22 May 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>
#include <hidapi/hidapi.h>
#include "RGBController.h"
class SteelSeriesQCKMatController
{
public: