Update HyperX keyboard controller files to new standardized header comment
This commit is contained in:
parent
af830e5b21
commit
080e40c4d4
25 changed files with 289 additions and 245 deletions
|
|
@ -1,15 +1,16 @@
|
|||
/*-----------------------------------------*\
|
||||
| HyperXAlloyElite2Controller.cpp |
|
||||
| |
|
||||
| Driver for HyperX Alloy Elite2 RGB |
|
||||
| Keyboard lighting controller |
|
||||
| |
|
||||
| KundaPanda (vojdo) 02/04/2021 |
|
||||
\*-----------------------------------------*/
|
||||
|
||||
#include "HyperXAlloyElite2Controller.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXAlloyElite2Controller.cpp |
|
||||
| |
|
||||
| Driver for HyperX Alloy Elite 2 keyboard |
|
||||
| |
|
||||
| KundaPanda (vojdo) 02 Apr 2021 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include "HyperXAlloyElite2Controller.h"
|
||||
|
||||
/*-----------------------------------------*\
|
||||
| Skip these indices in the color output |
|
||||
|
|
@ -131,7 +132,7 @@ void HyperXAlloyElite2Controller::SetLEDsDirect(const std::vector<RGBColor>& col
|
|||
| Send packet |
|
||||
\*---------------------------------------------*/
|
||||
hid_send_feature_report(dev, buf, sizeof(buf));
|
||||
|
||||
|
||||
/*---------------------------------------------*\
|
||||
| Zero out buffer and reset index |
|
||||
\*---------------------------------------------*/
|
||||
|
|
|
|||
|
|
@ -1,18 +1,19 @@
|
|||
/*-----------------------------------------*\
|
||||
| HyperXAlloyElite2Controller.h |
|
||||
| |
|
||||
| Definitions and types for HyperX Alloy |
|
||||
| Elite2 RGB Keyboard lighting controller |
|
||||
| |
|
||||
| KundaPanda (vojdo) 02/04/2021 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXAlloyElite2Controller.h |
|
||||
| |
|
||||
| Driver for HyperX Alloy Elite 2 keyboard |
|
||||
| |
|
||||
| KundaPanda (vojdo) 02 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 HyperXAlloyElite2Controller
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_HyperXAlloyElite2.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX Alloy |
|
||||
| Elite2 RGB Keyboard |
|
||||
| |
|
||||
| KundaPanda (vojdo) 02/04/2021 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXAlloyElite2.cpp |
|
||||
| |
|
||||
| RGBController for HyperX Alloy Elite 2 keyboard |
|
||||
| |
|
||||
| KundaPanda (vojdo) 02 Apr 2021 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBControllerKeyNames.h"
|
||||
#include "RGBController_HyperXAlloyElite2.h"
|
||||
|
|
|
|||
|
|
@ -1,17 +1,19 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_HyperXAlloyElite2.h |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX Alloy |
|
||||
| Elite2 RGB Keyboard |
|
||||
| |
|
||||
| KundaPanda (vojdo) 02/04/2021 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXAlloyElite2.h |
|
||||
| |
|
||||
| RGBController for HyperX Alloy Elite 2 keyboard |
|
||||
| |
|
||||
| KundaPanda (vojdo) 02 Apr 2021 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <atomic>
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
#include "RGBController.h"
|
||||
#include "HyperXAlloyElite2Controller.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,16 @@
|
|||
/*-----------------------------------------*\
|
||||
| HyperXAlloyEliteController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Alloy Elite Keyboard |
|
||||
| lighting controller |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 1/30/2020 |
|
||||
\*-----------------------------------------*/
|
||||
|
||||
#include "HyperXAlloyEliteController.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXAlloyEliteController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Alloy Elite keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 30 Jan 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include "HyperXAlloyEliteController.h"
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
|
|
@ -221,7 +222,7 @@ void HyperXAlloyEliteController::SetLEDs(std::vector<RGBColor> colors)
|
|||
);
|
||||
|
||||
std::this_thread::sleep_for(5ms);
|
||||
|
||||
|
||||
SendExtendedColor
|
||||
(
|
||||
0x01,
|
||||
|
|
|
|||
|
|
@ -1,18 +1,19 @@
|
|||
/*-----------------------------------------*\
|
||||
| HyperXAlloyEliteController.h |
|
||||
| |
|
||||
| Definitions and types for HyperX Alloy |
|
||||
| Elite Keyboard lighting controller |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 1/30/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXAlloyEliteController.h |
|
||||
| |
|
||||
| Driver for HyperX Alloy Elite keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 30 Jan 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"
|
||||
|
||||
enum
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_HyperXAlloyElite.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX Alloy |
|
||||
| Elite Keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 2/2/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXAlloyElite.cpp |
|
||||
| |
|
||||
| RGBController for HyperX Alloy Elite keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 02 Feb 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBControllerKeyNames.h"
|
||||
#include "RGBController_HyperXAlloyElite.h"
|
||||
|
|
|
|||
|
|
@ -1,17 +1,19 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_HyperXAlloyElite.h |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX Alloy |
|
||||
| Elite Keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 2/2/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXAlloyElite.h |
|
||||
| |
|
||||
| RGBController for HyperX Alloy Elite keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 02 Feb 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <atomic>
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
#include "RGBController.h"
|
||||
#include "HyperXAlloyEliteController.h"
|
||||
|
||||
|
|
@ -24,7 +26,7 @@ public:
|
|||
void SetupZones();
|
||||
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
|
@ -32,7 +34,7 @@ public:
|
|||
void DeviceUpdateMode();
|
||||
|
||||
void KeepaliveThreadFunction();
|
||||
|
||||
|
||||
private:
|
||||
HyperXAlloyEliteController* controller;
|
||||
std::atomic<bool> keepalive_thread_run;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,16 @@
|
|||
/*-----------------------------------------*\
|
||||
| HyperXAlloyFPSController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Alloy FPS Keyboard |
|
||||
| lighting controller |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 1/30/2020 |
|
||||
\*-----------------------------------------*/
|
||||
|
||||
#include "HyperXAlloyFPSController.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXAlloyFPSController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Alloy FPS keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 30 Jan 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include "HyperXAlloyFPSController.h"
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,18 +1,19 @@
|
|||
/*-----------------------------------------*\
|
||||
| HyperXAlloyFPSController.h |
|
||||
| |
|
||||
| Definitions and types for HyperX Alloy |
|
||||
| Elite Keyboard lighting controller |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 1/30/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXAlloyFPSController.h |
|
||||
| |
|
||||
| Driver for HyperX Alloy FPS keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 30 Jan 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"
|
||||
|
||||
enum
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_HyperXAlloyFPS.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX Alloy |
|
||||
| FPS Keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 2/2/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXAlloyFPS.cpp |
|
||||
| |
|
||||
| RGBController for HyperX Alloy FPS keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 02 Feb 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBControllerKeyNames.h"
|
||||
#include "RGBController_HyperXAlloyFPS.h"
|
||||
|
|
|
|||
|
|
@ -1,17 +1,19 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_HyperXAlloyFPS.h |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX Alloy |
|
||||
| FPS Keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 2/2/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXAlloyFPS.h |
|
||||
| |
|
||||
| RGBController for HyperX Alloy FPS keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 02 Feb 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <atomic>
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
#include "RGBController.h"
|
||||
#include "HyperXAlloyFPSController.h"
|
||||
|
||||
|
|
@ -24,7 +26,7 @@ public:
|
|||
void SetupZones();
|
||||
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
|
@ -32,7 +34,7 @@ public:
|
|||
void DeviceUpdateMode();
|
||||
|
||||
void KeepaliveThreadFunction();
|
||||
|
||||
|
||||
private:
|
||||
HyperXAlloyFPSController* controller;
|
||||
std::atomic<bool> keepalive_thread_run;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,16 @@
|
|||
/*-----------------------------------------*\
|
||||
| HyperXAlloyOrigins60and65Controller.cpp |
|
||||
| |
|
||||
| Driver for HyperX Alloy Origins 60 and |
|
||||
| 65 RGB Keyboards lighting controller |
|
||||
| |
|
||||
| Derek Huber 03/18/2023 |
|
||||
\*-----------------------------------------*/
|
||||
|
||||
#include "HyperXAlloyOrigins60and65Controller.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXAlloyOrigins60and65Controller.cpp |
|
||||
| |
|
||||
| Driver for HyperX Alloy Origins 60 and 65 keyboard |
|
||||
| |
|
||||
| Derek Huber 18 Mar 2023 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include "HyperXAlloyOrigins60and65Controller.h"
|
||||
|
||||
HyperXAlloyOrigins60and65Controller::HyperXAlloyOrigins60and65Controller(hid_device* dev_handle, const char* path)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
/*---------------------------------------*\
|
||||
| HyperXAlloyOrigins60and65Controller.h |
|
||||
| |
|
||||
| Definitions and types for HyperX |
|
||||
| Alloy Origins 60 and 65 RGB Keyboards |
|
||||
| lighting controller |
|
||||
| |
|
||||
| Derek Huber 03/18/2023 |
|
||||
\*---------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXAlloyOrigins60and65Controller.h |
|
||||
| |
|
||||
| Driver for HyperX Alloy Origins 60 and 65 keyboard |
|
||||
| |
|
||||
| Derek Huber 18 Mar 2023 |
|
||||
| |
|
||||
| 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 HyperXAlloyOrigins60and65Controller
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,11 +1,14 @@
|
|||
/*---------------------------------------------*\
|
||||
| RGBController_HyperXAlloyOrigins60and65.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX Alloy |
|
||||
| Origins 60 and 65 RGB Keyboards |
|
||||
| |
|
||||
| Derek Huber 03/18/2023 |
|
||||
\*---------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXAlloyOrigins60and65.cpp |
|
||||
| |
|
||||
| RGBController for HyperX Alloy Origins 60 and 65 |
|
||||
| keyboard |
|
||||
| |
|
||||
| Derek Huber 18 Mar 2023 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBControllerKeyNames.h"
|
||||
#include "RGBController_HyperXAlloyOrigins60and65.h"
|
||||
|
|
|
|||
|
|
@ -1,15 +1,18 @@
|
|||
/*-------------------------------------------*\
|
||||
| RGBController_HyperXAlloyOrigins60and65.h |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX Alloy |
|
||||
| Origins 60 and 65 RGB Keyboards |
|
||||
| |
|
||||
| Derek Huber 03/18/2023 |
|
||||
\*-------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXAlloyOrigins60and65.h |
|
||||
| |
|
||||
| RGBController for HyperX Alloy Origins 60 and 65 |
|
||||
| keyboard |
|
||||
| |
|
||||
| Derek Huber 18 Mar 2023 |
|
||||
| |
|
||||
| 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 "HyperXAlloyOrigins60and65Controller.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,16 @@
|
|||
/*-----------------------------------------*\
|
||||
| HyperXAlloyOriginsController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Alloy Origins RGB |
|
||||
| Keyboard lighting controller |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 7/11/2020 |
|
||||
\*-----------------------------------------*/
|
||||
|
||||
#include "HyperXAlloyOriginsController.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXAlloyOriginsController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Alloy Origins keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 11 Jul 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include "HyperXAlloyOriginsController.h"
|
||||
|
||||
// Skip these indices in the color output
|
||||
static unsigned int skip_idx[] = { 23, 29, 41, 47, 59, 70, 71, 87, 88, 93, 99, 100, 102, 108, 113, 114, 120, 123, 124 };
|
||||
|
|
|
|||
|
|
@ -1,18 +1,19 @@
|
|||
/*-----------------------------------------*\
|
||||
| HyperXAlloyOriginsController.h |
|
||||
| |
|
||||
| Definitions and types for HyperX Alloy |
|
||||
| Origins RGB Keyboard lighting controller |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 7/11/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXAlloyOriginsController.h |
|
||||
| |
|
||||
| Driver for HyperX Alloy Origins keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 11 Jul 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"
|
||||
|
||||
class HyperXAlloyOriginsController
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_HyperXAlloyOrigins.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX Alloy |
|
||||
| Origins RGB Keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 7/11/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXAlloyOrigins.cpp |
|
||||
| |
|
||||
| RGBController for HyperX Alloy Origins keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 11 Jul 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBControllerKeyNames.h"
|
||||
#include "RGBController_HyperXAlloyOrigins.h"
|
||||
|
|
|
|||
|
|
@ -1,15 +1,17 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_HyperXAlloyOrigins.h |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX Alloy |
|
||||
| Origins RGB Keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 7/11/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXAlloyOrigins.h |
|
||||
| |
|
||||
| RGBController for HyperX Alloy Origins keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 11 Jul 2020 |
|
||||
| |
|
||||
| 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 "HyperXAlloyOriginsController.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:
|
||||
HyperXAlloyOriginsController* controller;
|
||||
std::thread* keepalive_thread;
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,13 @@
|
|||
/*---------------------------------------------------------*\
|
||||
| HyperXKeyboardControllerDetect.cpp |
|
||||
| |
|
||||
| Driver for HyperX keyboards |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <hidapi/hidapi.h>
|
||||
#include "Detector.h"
|
||||
#include "HyperXAlloyEliteController.h"
|
||||
#include "HyperXAlloyElite2Controller.h"
|
||||
|
|
@ -12,7 +22,6 @@
|
|||
#include "RGBController_HyperXAlloyOrigins.h"
|
||||
#include "RGBController_HyperXAlloyOriginsCore.h"
|
||||
#include "RGBController_HyperXAlloyOrigins60and65.h"
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| HyperX keyboard vendor and product IDs |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue