Update Razer controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-06-07 11:27:32 -05:00
parent 16bc33c18a
commit d2d342ade7
6 changed files with 69 additions and 36 deletions

View file

@ -1,3 +1,14 @@
/*---------------------------------------------------------*\
| RGBController_Razer.cpp |
| |
| RGBController for Razer devices |
| |
| Adam Honse (CalcProgrammer1) 22 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_Razer.h" #include "RGBController_Razer.h"
#include "RazerDevices.h" #include "RazerDevices.h"
#include "LogManager.h" #include "LogManager.h"

View file

@ -1,12 +1,16 @@
/*-----------------------------------------*\ /*---------------------------------------------------------*\
| RGBController_Razer.h | | RGBController_Razer.h |
| | | |
| Generic RGB Interface for Razer devices | | RGBController for Razer devices |
| | | |
| Adam Honse (CalcProgrammer1) 1/22/2021 | | Adam Honse (CalcProgrammer1) 22 Jan 2021 |
\*-----------------------------------------*/ | |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once #pragma once
#include "RGBController.h" #include "RGBController.h"
#include "RazerController.h" #include "RazerController.h"

View file

@ -1,7 +1,17 @@
#include "RGBController_RazerAddressable.h" /*---------------------------------------------------------*\
#include "RazerDevices.h" | RGBController_RazerAddressable.cpp |
| |
| RGBController for Razer ARGB Controller |
| |
| Adam Honse (CalcProgrammer1) 11 Apr 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <string.h> #include <string.h>
#include "RGBController_RazerAddressable.h"
#include "RazerDevices.h"
/**------------------------------------------------------------------*\ /**------------------------------------------------------------------*\
@name Razer ARGB @name Razer ARGB

View file

@ -1,12 +1,16 @@
/*-----------------------------------------*\ /*---------------------------------------------------------*\
| RGBController_RazerAddressable.h | | RGBController_RazerAddressable.h |
| | | |
| Generic RGB Interface for Razer devices | | RGBController for Razer ARGB Controller |
| | | |
| Adam Honse (CalcProgrammer1) 4/11/2021 | | Adam Honse (CalcProgrammer1) 11 Apr 2021 |
\*-----------------------------------------*/ | |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once #pragma once
#include "RGBController.h" #include "RGBController.h"
#include "RazerController.h" #include "RazerController.h"
@ -30,7 +34,7 @@ public:
void SetupZones(); void SetupZones();
void ResizeZone(int zone, int new_size); void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs(); void DeviceUpdateLEDs();
void UpdateZoneLEDs(int zone); void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led); void UpdateSingleLED(int led);

View file

@ -1,17 +1,19 @@
/*-----------------------------------------*\ /*---------------------------------------------------------*\
| RazerController.cpp | | RazerController.cpp |
| | | |
| Driver for Razer devices | | Driver for Razer devices |
| | | |
| Adam Honse (CalcProgrammer1) 1/22/2021 | | Adam Honse (CalcProgrammer1) 22 Jan 2021 |
\*-----------------------------------------*/ | |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <string.h>
#include "RazerController.h" #include "RazerController.h"
#include "RazerDevices.h" #include "RazerDevices.h"
#include "LogManager.h" #include "LogManager.h"
#include <string.h>
using namespace std::chrono_literals; using namespace std::chrono_literals;
RazerController::RazerController(hid_device* dev_handle, hid_device* dev_argb_handle, const char* path, unsigned short pid, std::string dev_name) RazerController::RazerController(hid_device* dev_handle, hid_device* dev_argb_handle, const char* path, unsigned short pid, std::string dev_name)

View file

@ -1,17 +1,19 @@
/*-----------------------------------------*\ /*---------------------------------------------------------*\
| RazerController.h | | RazerController.h |
| | | |
| Definitions and types for Razer devices | | Driver for Razer devices |
| | | |
| Adam Honse (CalcProgrammer1) 1/22/2021 | | Adam Honse (CalcProgrammer1) 22 Jan 2021 |
\*-----------------------------------------*/ | |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController.h" #pragma once
#include <string> #include <string>
#include <hidapi/hidapi.h> #include <hidapi/hidapi.h>
#include "RGBController.h"
#pragma once
/*---------------------------------------------------------*\ /*---------------------------------------------------------*\
| Struct packing macro for GCC and MSVC | | Struct packing macro for GCC and MSVC |