Update EVision keyboard controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-05-17 11:49:02 -05:00
parent 8650ec51ae
commit cd5b8e08c7
9 changed files with 103 additions and 76 deletions

View file

@ -1,18 +1,17 @@
/*-----------------------------------------*\
| EVisionKeyboardController.cpp |
| |
| Driver for EVision RGB keyboard lighting |
| controller |
| |
| EVision is used by Redragon, Glorious, |
| Ajazz, Tecware, and many other brands |
| |
| Adam Honse (CalcProgrammer1) 3/15/2020 |
\*-----------------------------------------*/
#include "EVisionKeyboardController.h"
/*---------------------------------------------------------*\
| EVisionKeyboardController.cpp |
| |
| Driver for EVision keyboard (Redragon, Glorious, Ajazz, |
| Tecware, and many other brands) |
| |
| Adam Honse (CalcProgrammer1) 15 Mar 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "EVisionKeyboardController.h"
EVisionKeyboardController::EVisionKeyboardController(hid_device* dev_handle, const char* path)
{

View file

@ -1,21 +1,20 @@
/*-----------------------------------------*\
| EVisionKeyboardController.h |
| |
| Definitions and types for EVision RGB |
| keyboard lighting controller |
| |
| EVision is used by Redragon, Glorious, |
| Ajazz, Tecware, and many other brands |
| |
| Adam Honse (CalcProgrammer1) 3/15/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| EVisionKeyboardController.h |
| |
| Driver for EVision keyboard (Redragon, Glorious, Ajazz, |
| Tecware, and many other brands) |
| |
| Adam Honse (CalcProgrammer1) 15 Mar 2020 |
| |
| 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"
#define EVISION_KB_MAX_PACKET_SIZE ( 0x36 )/* max packet size for color*/
/* update packets */

View file

@ -1,3 +1,14 @@
/*---------------------------------------------------------*\
| EVisionKeyboardControllerDetect.cpp |
| |
| Detector for EVision keyboards |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <vector>
#include <hidapi/hidapi.h>
#include "Detector.h"
#include "EVisionKeyboardController.h"
#include "EVisionV2KeyboardController.h"
@ -5,8 +16,6 @@
#include "RGBController_EVisionKeyboard.h"
#include "RGBController_EVisionV2Keyboard.h"
#include "SettingsManager.h"
#include <vector>
#include <hidapi/hidapi.h>
/*-----------------------------------------------------*\
| Keyboard product IDs |

View file

@ -1,10 +1,13 @@
/*-------------------------------------------------------------------*\
| EVisionV2KeyboardController.cpp |
| |
| Driver for recent EVision RGB keyboard lighting controller |
| |
| Le Philousophe 25 Dec 2022 |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| EVisionV2KeyboardController.cpp |
| |
| Driver for EVision V2 keyboard |
| |
| Le Philousophe 25 Dec 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "LogManager.h"

View file

@ -1,17 +1,20 @@
/*-------------------------------------------------------------------*\
| EVisionV2KeyboardController.h |
| |
| Definitions and types for EVision RGB keyboard lighting controller |
| |
| Le Philousophe 25 Dec 2022 |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| EVisionV2KeyboardController.h |
| |
| Driver for EVision V2 keyboard |
| |
| Le Philousophe 25 Dec 2022 |
| |
| 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"
#pragma once
#define EVISION_V2_PACKET_SIZE 64
#define HID_MAX_STR 255

View file

@ -1,11 +1,14 @@
/*-----------------------------------------*\
| RGBController_EVisionKeyboard.cpp |
| |
| Generic RGB Interface for EVision RGB |
| Keyboard |
| |
| Adam Honse (CalcProgrammer1) 3/25/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_EVisionKeyboard.cpp |
| |
| RGBController for EVision keyboard (Redragon, Glorious, |
| Ajazz, Tecware, and many other brands) |
| |
| Adam Honse (CalcProgrammer1) 25 Mar 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_EVisionKeyboard.h"

View file

@ -1,13 +1,17 @@
/*-----------------------------------------*\
| RGBController_EVisionKeyboard.h |
| |
| Generic RGB Interface for EVision RGB |
| Keyboard |
| |
| Adam Honse (CalcProgrammer1) 3/25/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_EVisionKeyboard.h |
| |
| RGBController for EVision keyboard (Redragon, Glorious, |
| Ajazz, Tecware, and many other brands) |
| |
| Adam Honse (CalcProgrammer1) 25 Mar 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "EVisionKeyboardController.h"

View file

@ -1,10 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_EVisionV2Keyboard.cpp |
| |
| Generic RGB Interface for EVision V2 RGB Keyboard |
| |
| Le Philousophe 25 Dec 2022 |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_EVisionV2Keyboard.cpp |
| |
| RGBController for EVision V2 keyboard |
| |
| Le Philousophe 25 Dec 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#define NA 0xFFFFFFFF

View file

@ -1,16 +1,20 @@
/*-------------------------------------------------------------------*\
| RGBController_EVisionV2KeyboardController.h |
| |
| Generic RGB Interface for EVision V2 RGB Keyboard |
| |
| Le Philousophe 25 Dec 2022 |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_EVisionV2Keyboard.h |
| |
| RGBController for EVision V2 keyboard |
| |
| Le Philousophe 25 Dec 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <vector>
#include "LogManager.h"
#include "RGBController.h"
#include "EVisionV2KeyboardController.h"
#include <vector>
class RGBController_EVisionV2Keyboard : public RGBController
{