Move and update Logitech G Pro keyboard controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-05-31 11:08:11 -05:00
parent 0760e13808
commit 3c08177b58
5 changed files with 68 additions and 60 deletions

View file

@ -1,14 +1,16 @@
/*-----------------------------------------*\
| LogitechGProController.cpp |
| |
| Driver for Logitech G Pro |
| keyboard light controller |
| |
| sanchezzzs 20/10/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| LogitechGProController.cpp |
| |
| Driver for Logitech G Pro keyboard |
| |
| sanchezzzs 20 Oct 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "LogitechGProKeyboardController.h"
#include <cstring>
#include "LogitechGProKeyboardController.h"
LogitechGProKeyboardController::LogitechGProKeyboardController(hid_device* dev_handle_0x11, hid_device* dev_handle_0x12)
{

View file

@ -1,18 +1,19 @@
/*-----------------------------------------*\
| LogitechGProController.h |
| |
| Definitions and types for Logitech G Pro |
| keyboard light controller |
| |
| sanchezzzs 20/10/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| LogitechGProController.h |
| |
| Driver for Logitech G Pro keyboard |
| |
| sanchezzzs 20 Oct 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController.h"
#pragma once
#include <string>
#include <hidapi/hidapi.h>
#pragma once
#include "RGBController.h"
enum
{

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_LogitechGPro.cpp |
| |
| Generic RGB Interface for Logitech G Pro |
| Keyboard |
| |
| sanchezzzs 20/10/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_LogitechGPro.cpp |
| |
| RGBController for Logitech G Pro keyboard |
| |
| sanchezzzs 20 Oct 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBControllerKeyNames.h"
#include "RGBController_LogitechGProKeyboard.h"

View file

@ -0,0 +1,35 @@
/*---------------------------------------------------------*\
| RGBController_LogitechGPro.h |
| |
| RGBController for Logitech G Pro keyboard |
| |
| sanchezzzs 20 Oct 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "LogitechGProKeyboardController.h"
class RGBController_LogitechGProKeyboard : public RGBController
{
public:
RGBController_LogitechGProKeyboard(LogitechGProKeyboardController* controller_ptr);
~RGBController_LogitechGProKeyboard();
void SetupZones();
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);
void DeviceUpdateMode();
private:
LogitechGProKeyboardController* controller;
};

View file

@ -1,32 +0,0 @@
/*-----------------------------------------*\
| RGBController_LogitechGPro.h |
| |
| Generic RGB Interface for Logitech G Pro |
| keyboard |
| |
| sanchezzzs 20/10/2021 |
\*-----------------------------------------*/
#pragma once
#include "RGBController.h"
#include "LogitechGProKeyboardController.h"
class RGBController_LogitechGProKeyboard : public RGBController
{
public:
RGBController_LogitechGProKeyboard(LogitechGProKeyboardController* controller_ptr);
~RGBController_LogitechGProKeyboard();
void SetupZones();
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);
void DeviceUpdateMode();
private:
LogitechGProKeyboardController* controller;
};