Update HyperX keyboard controller files to new standardized header comment

This commit is contained in:
Adam Honse
2024-05-19 19:53:45 -05:00
parent af830e5b21
commit 080e40c4d4
25 changed files with 289 additions and 245 deletions

View File

@@ -1,16 +1,17 @@
/*------------------------------------------*\
| HyperXAlloyOriginsCoreController.cpp |
| |
| Driver for HyperX Alloy Origins Core |
| RGB Keyboard lighting controller |
| |
| Volodymyr Nazarchuk (Vavooon) 4/28/2021 |
| mike white (kamaaina) 6/9/2021 |
\*------------------------------------------*/
#include "HyperXAlloyOriginsCoreController.h"
/*---------------------------------------------------------*\
| HyperXAlloyOriginsCoreController.cpp |
| |
| Driver for HyperX Alloy Origins Core keyboard |
| |
| Volodymyr Nazarchuk (Vavooon) 28 Apr 2021 |
| Mike White (kamaaina) 09 Jun 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "HyperXAlloyOriginsCoreController.h"
// Skip these indices in the color output
static unsigned int skip_idx[] = {6, 7, 14, 15, 22, 23, 30, 31, 38, 39, 44, 46, 47, 54, 55, 58, 60, 61, 62, 63, 70, 71, 78, 79, 86, 87, 94, 95, 101, 102, 103, 109, 110, 111, 118, 119};

View File

@@ -1,19 +1,19 @@
/*------------------------------------------*\
| HyperXAlloyOriginsCoreController.h |
| |
| Definitions and types for HyperX Alloy |
| Origins Core RGB Keyboard lighting |
| controller |
| |
| Volodymyr Nazarchuk (Vavooon) 4/28/2021 |
\*------------------------------------------*/
/*---------------------------------------------------------*\
| HyperXAlloyOriginsCoreController.h |
| |
| Driver for HyperX Alloy Origins Core keyboard |
| |
| Volodymyr Nazarchuk (Vavooon) 28 Apr 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"
class HyperXAlloyOriginsCoreController
{

View File

@@ -1,18 +1,19 @@
/*------------------------------------------*\
| RGBController_HyperXAlloyOriginsCore.cpp |
| |
| Generic RGB Interface for HyperX Alloy |
| Origins Core RGB Keyboard |
| |
| Volodymyr Nazarchuk (Vavooon) 4/28/2021 |
\*------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_HyperXAlloyOriginsCore.cpp |
| |
| RGBController for HyperX Alloy Origins Core keyboard |
| |
| Volodymyr Nazarchuk (Vavooon) 28 Apr 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBControllerKeyNames.h"
#include "RGBController_HyperXAlloyOriginsCore.h"
using namespace std::chrono_literals;
#define HYPERX_MIN_BRIGHTNESS 0
#define HYPERX_MAX_BRIGHTNESS 255

View File

@@ -1,15 +1,17 @@
/*------------------------------------------*\
| RGBController_HyperXAlloyOriginsCore.h |
| |
| Generic RGB Interface for HyperX Alloy |
| Origins Core RGB Keyboard |
| |
| Volodymyr Nazarchuk (Vavooon) 4/28/2021 |
\*------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_HyperXAlloyOriginsCore.h |
| |
| RGBController for HyperX Alloy Origins Core keyboard |
| |
| Volodymyr Nazarchuk (Vavooon) 28 Apr 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <chrono>
#include <chrono>
#include "RGBController.h"
#include "HyperXAlloyOriginsCoreController.h"
@@ -22,15 +24,15 @@ public:
void SetupZones();
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);
void DeviceUpdateMode();
void KeepaliveThread();
private:
HyperXAlloyOriginsCoreController* controller;
std::thread* keepalive_thread;