Update Epomaker controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-05-16 22:22:23 -05:00
parent 50ec1095c1
commit d5590ed427
5 changed files with 60 additions and 48 deletions

View file

@ -1,15 +1,16 @@
/*-------------------------------------------------------------------*\
| EpomakerController.cpp |
| |
| Driver for Epomaker Keyboard |
| |
| Alvaro Munoz (alvaromunoz) 2023-06-05 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| EpomakerController.cpp |
| |
| Driver for Epomaker keyboard |
| |
| Alvaro Munoz (alvaromunoz) 05 Jun 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "EpomakerController.h"
#include <math.h>
#include "EpomakerController.h"
#include "LogManager.h"
EpomakerController::EpomakerController(hid_device* dev_handle, char *_path)

View file

@ -1,22 +1,23 @@
/*-------------------------------------------------------------------*\
| EpomakerController.h |
| |
| Driver for Epomaker Keyboard |
| |
| Alvaro Munoz (alvaromunoz) 2023-06-05 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| EpomakerController.h |
| |
| Driver for Epomaker keyboard |
| |
| Alvaro Munoz (alvaromunoz) 05 Jun 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#ifndef EpomakerCONTROLLER_H
#define EpomakerCONTROLLER_H
#pragma once
#include <string>
#include <hidapi/hidapi.h>
#define EPOMAKER_PACKET_LENGTH 0x40
#define EPOMAKER_COMMAND_RGB 0x07
#define EPOMAKER_COMMAND_SET 0xf60a
#define EPOMAKER_COMMAND_PING 0xf7
#define EPOMAKER_PACKET_LENGTH 0x40
#define EPOMAKER_COMMAND_RGB 0x07
#define EPOMAKER_COMMAND_SET 0xF60A
#define EPOMAKER_COMMAND_PING 0xF7
enum
{
@ -122,5 +123,3 @@ private:
void SendUpdate();
};
#endif // EpomakerCONTROLLER_H

View file

@ -1,8 +1,19 @@
/*---------------------------------------------------------*\
| EpomakerControllerDetect.cpp |
| |
| Detector for Epomaker keyboard |
| |
| Alvaro Munoz (alvaromunoz) 05 Jun 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <hidapi/hidapi.h>
#include "Detector.h"
#include "EpomakerController.h"
#include "RGBController.h"
#include "RGBController_EpomakerController.h"
#include <hidapi/hidapi.h>
#define EPOMAKER_VID 0x3151
#define EPOMAKER_TH80_Pro_USB_PID 0x4010

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_EpomakerController.cpp |
| |
| Driver for Epomaker Keyboard |
| |
| Alvaro Munoz (alvaromunoz) 2023-06-05 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_EpomakerController.cpp |
| |
| RGBController for Epomaker keyboard |
| |
| Alvaro Munoz (alvaromunoz) 05 Jun 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBControllerKeyNames.h"
#include "RGBController_EpomakerController.h"

View file

@ -1,17 +1,18 @@
/*-------------------------------------------------------------------*\
| RGBController_EpomakerController.h |
| |
| Driver for Epomaker Keyboard |
| |
| Alvaro Munoz (alvaromunoz) 2023-06-05 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_EpomakerController.h |
| |
| RGBController for Epomaker keyboard |
| |
| Alvaro Munoz (alvaromunoz) 05 Jun 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#ifndef RGBCONTROLLER_EpomakerCONTROLLER_H
#define RGBCONTROLLER_EpomakerCONTROLLER_H
#pragma once
#include "RGBController.h"
#include "Controllers/EpomakerController/EpomakerController.h"
#include "EpomakerController.h"
class RGBController_EpomakerController : public RGBController
{
@ -32,5 +33,3 @@ public:
private:
EpomakerController* controller;
};
#endif // RGBCONTROLLER_EpomakerCONTROLLER_H