Move and update Logitech G213 controller files to new standardized header comment
This commit is contained in:
parent
52423a325e
commit
6c30e92b21
5 changed files with 66 additions and 53 deletions
|
|
@ -1,13 +1,16 @@
|
|||
/*-----------------------------------------*\
|
||||
| LogitechG213Controller.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for Logitech G213 |
|
||||
| |
|
||||
| Eric Samuelson (edbgon) 10/06/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| LogitechG203LController.cpp |
|
||||
| |
|
||||
| Driver for Logitech G203L |
|
||||
| |
|
||||
| Eric Samuelson (edbgon) 06 Oct 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "LogitechG213Controller.h"
|
||||
#include <cstring>
|
||||
#include "LogitechG213Controller.h"
|
||||
|
||||
LogitechG213Controller::LogitechG213Controller(hid_device* dev_handle, const char* path)
|
||||
{
|
||||
|
|
@ -1,10 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| LogitechG213Controller.h |
|
||||
| |
|
||||
| Generic RGB Interface for Logitech G213 |
|
||||
| |
|
||||
| Eric Samuelson (edbgon) 10/06/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| LogitechG203LController.h |
|
||||
| |
|
||||
| Driver for Logitech G203L |
|
||||
| |
|
||||
| Eric Samuelson (edbgon) 06 Oct 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController.h"
|
||||
|
||||
|
|
@ -1,10 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_LogitechG213.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for Logitech G213 |
|
||||
| |
|
||||
| Eric Samuelson (edbgon) 10/06/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_LogitechG213.cpp |
|
||||
| |
|
||||
| RGBController for Logitech G203L |
|
||||
| |
|
||||
| Eric Samuelson (edbgon) 06 Oct 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController_LogitechG213.h"
|
||||
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
/*---------------------------------------------------------*\
|
||||
| RGBController_LogitechG213.h |
|
||||
| |
|
||||
| RGBController for Logitech G203L |
|
||||
| |
|
||||
| Eric Samuelson (edbgon) 06 Oct 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RGBController.h"
|
||||
#include "LogitechG213Controller.h"
|
||||
|
||||
class RGBController_LogitechG213 : public RGBController
|
||||
{
|
||||
public:
|
||||
RGBController_LogitechG213(LogitechG213Controller* controller_ptr);
|
||||
~RGBController_LogitechG213();
|
||||
|
||||
void SetupZones();
|
||||
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
LogitechG213Controller* controller;
|
||||
};
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_LogitechG213.h |
|
||||
| |
|
||||
| Generic RGB Interface for Logitech G213 |
|
||||
| |
|
||||
| Eric Samuelson (edbgon) 10/06/2020 |
|
||||
\*-----------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
#include "RGBController.h"
|
||||
#include "LogitechG213Controller.h"
|
||||
|
||||
class RGBController_LogitechG213 : public RGBController
|
||||
{
|
||||
public:
|
||||
RGBController_LogitechG213(LogitechG213Controller* controller_ptr);
|
||||
~RGBController_LogitechG213();
|
||||
|
||||
void SetupZones();
|
||||
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
LogitechG213Controller* controller;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue