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 |
|
| HyperXAlloyElite2Controller.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for HyperX Alloy Elite2 RGB |
|
| Driver for HyperX Alloy Elite 2 keyboard |
|
||||||
| Keyboard lighting controller |
|
| |
|
||||||
| |
|
| KundaPanda (vojdo) 02 Apr 2021 |
|
||||||
| KundaPanda (vojdo) 02/04/2021 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
#include "HyperXAlloyElite2Controller.h"
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include "HyperXAlloyElite2Controller.h"
|
||||||
|
|
||||||
/*-----------------------------------------*\
|
/*-----------------------------------------*\
|
||||||
| Skip these indices in the color output |
|
| Skip these indices in the color output |
|
||||||
|
|
@ -131,7 +132,7 @@ void HyperXAlloyElite2Controller::SetLEDsDirect(const std::vector<RGBColor>& col
|
||||||
| Send packet |
|
| Send packet |
|
||||||
\*---------------------------------------------*/
|
\*---------------------------------------------*/
|
||||||
hid_send_feature_report(dev, buf, sizeof(buf));
|
hid_send_feature_report(dev, buf, sizeof(buf));
|
||||||
|
|
||||||
/*---------------------------------------------*\
|
/*---------------------------------------------*\
|
||||||
| Zero out buffer and reset index |
|
| Zero out buffer and reset index |
|
||||||
\*---------------------------------------------*/
|
\*---------------------------------------------*/
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,19 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| HyperXAlloyElite2Controller.h |
|
| HyperXAlloyElite2Controller.h |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for HyperX Alloy |
|
| Driver for HyperX Alloy Elite 2 keyboard |
|
||||||
| Elite2 RGB Keyboard lighting controller |
|
| |
|
||||||
| |
|
| KundaPanda (vojdo) 02 Apr 2021 |
|
||||||
| KundaPanda (vojdo) 02/04/2021 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBController.h"
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <hidapi/hidapi.h>
|
#include <hidapi/hidapi.h>
|
||||||
|
#include "RGBController.h"
|
||||||
#pragma once
|
|
||||||
|
|
||||||
class HyperXAlloyElite2Controller
|
class HyperXAlloyElite2Controller
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_HyperXAlloyElite2.cpp |
|
| RGBController_HyperXAlloyElite2.cpp |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for HyperX Alloy |
|
| RGBController for HyperX Alloy Elite 2 keyboard |
|
||||||
| Elite2 RGB Keyboard |
|
| |
|
||||||
| |
|
| KundaPanda (vojdo) 02 Apr 2021 |
|
||||||
| KundaPanda (vojdo) 02/04/2021 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBControllerKeyNames.h"
|
#include "RGBControllerKeyNames.h"
|
||||||
#include "RGBController_HyperXAlloyElite2.h"
|
#include "RGBController_HyperXAlloyElite2.h"
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,19 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_HyperXAlloyElite2.h |
|
| RGBController_HyperXAlloyElite2.h |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for HyperX Alloy |
|
| RGBController for HyperX Alloy Elite 2 keyboard |
|
||||||
| Elite2 RGB Keyboard |
|
| |
|
||||||
| |
|
| KundaPanda (vojdo) 02 Apr 2021 |
|
||||||
| KundaPanda (vojdo) 02/04/2021 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
#include "RGBController.h"
|
#include "RGBController.h"
|
||||||
#include "HyperXAlloyElite2Controller.h"
|
#include "HyperXAlloyElite2Controller.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,16 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| HyperXAlloyEliteController.cpp |
|
| HyperXAlloyEliteController.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for HyperX Alloy Elite Keyboard |
|
| Driver for HyperX Alloy Elite keyboard |
|
||||||
| lighting controller |
|
| |
|
||||||
| |
|
| Adam Honse (CalcProgrammer1) 30 Jan 2020 |
|
||||||
| Adam Honse (CalcProgrammer1) 1/30/2020 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
#include "HyperXAlloyEliteController.h"
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include "HyperXAlloyEliteController.h"
|
||||||
|
|
||||||
using namespace std::chrono_literals;
|
using namespace std::chrono_literals;
|
||||||
|
|
||||||
|
|
@ -221,7 +222,7 @@ void HyperXAlloyEliteController::SetLEDs(std::vector<RGBColor> colors)
|
||||||
);
|
);
|
||||||
|
|
||||||
std::this_thread::sleep_for(5ms);
|
std::this_thread::sleep_for(5ms);
|
||||||
|
|
||||||
SendExtendedColor
|
SendExtendedColor
|
||||||
(
|
(
|
||||||
0x01,
|
0x01,
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,19 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| HyperXAlloyEliteController.h |
|
| HyperXAlloyEliteController.h |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for HyperX Alloy |
|
| Driver for HyperX Alloy Elite keyboard |
|
||||||
| Elite Keyboard lighting controller |
|
| |
|
||||||
| |
|
| Adam Honse (CalcProgrammer1) 30 Jan 2020 |
|
||||||
| Adam Honse (CalcProgrammer1) 1/30/2020 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBController.h"
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <hidapi/hidapi.h>
|
#include <hidapi/hidapi.h>
|
||||||
|
#include "RGBController.h"
|
||||||
#pragma once
|
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_HyperXAlloyElite.cpp |
|
| RGBController_HyperXAlloyElite.cpp |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for HyperX Alloy |
|
| RGBController for HyperX Alloy Elite keyboard |
|
||||||
| Elite Keyboard |
|
| |
|
||||||
| |
|
| Adam Honse (CalcProgrammer1) 02 Feb 2020 |
|
||||||
| Adam Honse (CalcProgrammer1) 2/2/2020 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBControllerKeyNames.h"
|
#include "RGBControllerKeyNames.h"
|
||||||
#include "RGBController_HyperXAlloyElite.h"
|
#include "RGBController_HyperXAlloyElite.h"
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,19 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_HyperXAlloyElite.h |
|
| RGBController_HyperXAlloyElite.h |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for HyperX Alloy |
|
| RGBController for HyperX Alloy Elite keyboard |
|
||||||
| Elite Keyboard |
|
| |
|
||||||
| |
|
| Adam Honse (CalcProgrammer1) 02 Feb 2020 |
|
||||||
| Adam Honse (CalcProgrammer1) 2/2/2020 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
#include "RGBController.h"
|
#include "RGBController.h"
|
||||||
#include "HyperXAlloyEliteController.h"
|
#include "HyperXAlloyEliteController.h"
|
||||||
|
|
||||||
|
|
@ -24,7 +26,7 @@ public:
|
||||||
void SetupZones();
|
void SetupZones();
|
||||||
|
|
||||||
void ResizeZone(int zone, int new_size);
|
void ResizeZone(int zone, int new_size);
|
||||||
|
|
||||||
void DeviceUpdateLEDs();
|
void DeviceUpdateLEDs();
|
||||||
void UpdateZoneLEDs(int zone);
|
void UpdateZoneLEDs(int zone);
|
||||||
void UpdateSingleLED(int led);
|
void UpdateSingleLED(int led);
|
||||||
|
|
@ -32,7 +34,7 @@ public:
|
||||||
void DeviceUpdateMode();
|
void DeviceUpdateMode();
|
||||||
|
|
||||||
void KeepaliveThreadFunction();
|
void KeepaliveThreadFunction();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HyperXAlloyEliteController* controller;
|
HyperXAlloyEliteController* controller;
|
||||||
std::atomic<bool> keepalive_thread_run;
|
std::atomic<bool> keepalive_thread_run;
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,16 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| HyperXAlloyFPSController.cpp |
|
| HyperXAlloyFPSController.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for HyperX Alloy FPS Keyboard |
|
| Driver for HyperX Alloy FPS keyboard |
|
||||||
| lighting controller |
|
| |
|
||||||
| |
|
| Adam Honse (CalcProgrammer1) 30 Jan 2020 |
|
||||||
| Adam Honse (CalcProgrammer1) 1/30/2020 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
#include "HyperXAlloyFPSController.h"
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include "HyperXAlloyFPSController.h"
|
||||||
|
|
||||||
using namespace std::chrono_literals;
|
using namespace std::chrono_literals;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,19 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| HyperXAlloyFPSController.h |
|
| HyperXAlloyFPSController.h |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for HyperX Alloy |
|
| Driver for HyperX Alloy FPS keyboard |
|
||||||
| Elite Keyboard lighting controller |
|
| |
|
||||||
| |
|
| Adam Honse (CalcProgrammer1) 30 Jan 2020 |
|
||||||
| Adam Honse (CalcProgrammer1) 1/30/2020 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBController.h"
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <hidapi/hidapi.h>
|
#include <hidapi/hidapi.h>
|
||||||
|
#include "RGBController.h"
|
||||||
#pragma once
|
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_HyperXAlloyFPS.cpp |
|
| RGBController_HyperXAlloyFPS.cpp |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for HyperX Alloy |
|
| RGBController for HyperX Alloy FPS keyboard |
|
||||||
| FPS Keyboard |
|
| |
|
||||||
| |
|
| Adam Honse (CalcProgrammer1) 02 Feb 2020 |
|
||||||
| Adam Honse (CalcProgrammer1) 2/2/2020 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBControllerKeyNames.h"
|
#include "RGBControllerKeyNames.h"
|
||||||
#include "RGBController_HyperXAlloyFPS.h"
|
#include "RGBController_HyperXAlloyFPS.h"
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,19 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_HyperXAlloyFPS.h |
|
| RGBController_HyperXAlloyFPS.h |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for HyperX Alloy |
|
| RGBController for HyperX Alloy FPS keyboard |
|
||||||
| FPS Keyboard |
|
| |
|
||||||
| |
|
| Adam Honse (CalcProgrammer1) 02 Feb 2020 |
|
||||||
| Adam Honse (CalcProgrammer1) 2/2/2020 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
#include "RGBController.h"
|
#include "RGBController.h"
|
||||||
#include "HyperXAlloyFPSController.h"
|
#include "HyperXAlloyFPSController.h"
|
||||||
|
|
||||||
|
|
@ -24,7 +26,7 @@ public:
|
||||||
void SetupZones();
|
void SetupZones();
|
||||||
|
|
||||||
void ResizeZone(int zone, int new_size);
|
void ResizeZone(int zone, int new_size);
|
||||||
|
|
||||||
void DeviceUpdateLEDs();
|
void DeviceUpdateLEDs();
|
||||||
void UpdateZoneLEDs(int zone);
|
void UpdateZoneLEDs(int zone);
|
||||||
void UpdateSingleLED(int led);
|
void UpdateSingleLED(int led);
|
||||||
|
|
@ -32,7 +34,7 @@ public:
|
||||||
void DeviceUpdateMode();
|
void DeviceUpdateMode();
|
||||||
|
|
||||||
void KeepaliveThreadFunction();
|
void KeepaliveThreadFunction();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HyperXAlloyFPSController* controller;
|
HyperXAlloyFPSController* controller;
|
||||||
std::atomic<bool> keepalive_thread_run;
|
std::atomic<bool> keepalive_thread_run;
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,16 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| HyperXAlloyOrigins60and65Controller.cpp |
|
| HyperXAlloyOrigins60and65Controller.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for HyperX Alloy Origins 60 and |
|
| Driver for HyperX Alloy Origins 60 and 65 keyboard |
|
||||||
| 65 RGB Keyboards lighting controller |
|
| |
|
||||||
| |
|
| Derek Huber 18 Mar 2023 |
|
||||||
| Derek Huber 03/18/2023 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
#include "HyperXAlloyOrigins60and65Controller.h"
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include "HyperXAlloyOrigins60and65Controller.h"
|
||||||
|
|
||||||
HyperXAlloyOrigins60and65Controller::HyperXAlloyOrigins60and65Controller(hid_device* dev_handle, const char* path)
|
HyperXAlloyOrigins60and65Controller::HyperXAlloyOrigins60and65Controller(hid_device* dev_handle, const char* path)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
/*---------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| HyperXAlloyOrigins60and65Controller.h |
|
| HyperXAlloyOrigins60and65Controller.h |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for HyperX |
|
| Driver for HyperX Alloy Origins 60 and 65 keyboard |
|
||||||
| Alloy Origins 60 and 65 RGB Keyboards |
|
| |
|
||||||
| lighting controller |
|
| Derek Huber 18 Mar 2023 |
|
||||||
| |
|
| |
|
||||||
| Derek Huber 03/18/2023 |
|
| This file is part of the OpenRGB project |
|
||||||
\*---------------------------------------*/
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBController.h"
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <hidapi/hidapi.h>
|
#include <hidapi/hidapi.h>
|
||||||
|
#include "RGBController.h"
|
||||||
#pragma once
|
|
||||||
|
|
||||||
class HyperXAlloyOrigins60and65Controller
|
class HyperXAlloyOrigins60and65Controller
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,14 @@
|
||||||
/*---------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_HyperXAlloyOrigins60and65.cpp |
|
| RGBController_HyperXAlloyOrigins60and65.cpp |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for HyperX Alloy |
|
| RGBController for HyperX Alloy Origins 60 and 65 |
|
||||||
| Origins 60 and 65 RGB Keyboards |
|
| keyboard |
|
||||||
| |
|
| |
|
||||||
| Derek Huber 03/18/2023 |
|
| Derek Huber 18 Mar 2023 |
|
||||||
\*---------------------------------------------*/
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBControllerKeyNames.h"
|
#include "RGBControllerKeyNames.h"
|
||||||
#include "RGBController_HyperXAlloyOrigins60and65.h"
|
#include "RGBController_HyperXAlloyOrigins60and65.h"
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,18 @@
|
||||||
/*-------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_HyperXAlloyOrigins60and65.h |
|
| RGBController_HyperXAlloyOrigins60and65.h |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for HyperX Alloy |
|
| RGBController for HyperX Alloy Origins 60 and 65 |
|
||||||
| Origins 60 and 65 RGB Keyboards |
|
| keyboard |
|
||||||
| |
|
| |
|
||||||
| Derek Huber 03/18/2023 |
|
| Derek Huber 18 Mar 2023 |
|
||||||
\*-------------------------------------------*/
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <chrono>
|
|
||||||
|
|
||||||
|
#include <chrono>
|
||||||
#include "RGBController.h"
|
#include "RGBController.h"
|
||||||
#include "HyperXAlloyOrigins60and65Controller.h"
|
#include "HyperXAlloyOrigins60and65Controller.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,16 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| HyperXAlloyOriginsController.cpp |
|
| HyperXAlloyOriginsController.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for HyperX Alloy Origins RGB |
|
| Driver for HyperX Alloy Origins keyboard |
|
||||||
| Keyboard lighting controller |
|
| |
|
||||||
| |
|
| Adam Honse (CalcProgrammer1) 11 Jul 2020 |
|
||||||
| Adam Honse (CalcProgrammer1) 7/11/2020 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
#include "HyperXAlloyOriginsController.h"
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include "HyperXAlloyOriginsController.h"
|
||||||
|
|
||||||
// Skip these indices in the color output
|
// 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 };
|
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 |
|
| HyperXAlloyOriginsController.h |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for HyperX Alloy |
|
| Driver for HyperX Alloy Origins keyboard |
|
||||||
| Origins RGB Keyboard lighting controller |
|
| |
|
||||||
| |
|
| Adam Honse (CalcProgrammer1) 11 Jul 2020 |
|
||||||
| Adam Honse (CalcProgrammer1) 7/11/2020 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBController.h"
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <hidapi/hidapi.h>
|
#include <hidapi/hidapi.h>
|
||||||
|
#include "RGBController.h"
|
||||||
#pragma once
|
|
||||||
|
|
||||||
class HyperXAlloyOriginsController
|
class HyperXAlloyOriginsController
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_HyperXAlloyOrigins.cpp |
|
| RGBController_HyperXAlloyOrigins.cpp |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for HyperX Alloy |
|
| RGBController for HyperX Alloy Origins keyboard |
|
||||||
| Origins RGB Keyboard |
|
| |
|
||||||
| |
|
| Adam Honse (CalcProgrammer1) 11 Jul 2020 |
|
||||||
| Adam Honse (CalcProgrammer1) 7/11/2020 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBControllerKeyNames.h"
|
#include "RGBControllerKeyNames.h"
|
||||||
#include "RGBController_HyperXAlloyOrigins.h"
|
#include "RGBController_HyperXAlloyOrigins.h"
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,17 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_HyperXAlloyOrigins.h |
|
| RGBController_HyperXAlloyOrigins.h |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for HyperX Alloy |
|
| RGBController for HyperX Alloy Origins keyboard |
|
||||||
| Origins RGB Keyboard |
|
| |
|
||||||
| |
|
| Adam Honse (CalcProgrammer1) 11 Jul 2020 |
|
||||||
| Adam Honse (CalcProgrammer1) 7/11/2020 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <chrono>
|
|
||||||
|
|
||||||
|
#include <chrono>
|
||||||
#include "RGBController.h"
|
#include "RGBController.h"
|
||||||
#include "HyperXAlloyOriginsController.h"
|
#include "HyperXAlloyOriginsController.h"
|
||||||
|
|
||||||
|
|
@ -22,15 +24,15 @@ public:
|
||||||
void SetupZones();
|
void SetupZones();
|
||||||
|
|
||||||
void ResizeZone(int zone, int new_size);
|
void ResizeZone(int zone, int new_size);
|
||||||
|
|
||||||
void DeviceUpdateLEDs();
|
void DeviceUpdateLEDs();
|
||||||
void UpdateZoneLEDs(int zone);
|
void UpdateZoneLEDs(int zone);
|
||||||
void UpdateSingleLED(int led);
|
void UpdateSingleLED(int led);
|
||||||
|
|
||||||
void DeviceUpdateMode();
|
void DeviceUpdateMode();
|
||||||
|
|
||||||
void KeepaliveThread();
|
void KeepaliveThread();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HyperXAlloyOriginsController* controller;
|
HyperXAlloyOriginsController* controller;
|
||||||
std::thread* keepalive_thread;
|
std::thread* keepalive_thread;
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,17 @@
|
||||||
/*------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| HyperXAlloyOriginsCoreController.cpp |
|
| HyperXAlloyOriginsCoreController.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for HyperX Alloy Origins Core |
|
| Driver for HyperX Alloy Origins Core keyboard |
|
||||||
| RGB Keyboard lighting controller |
|
| |
|
||||||
| |
|
| Volodymyr Nazarchuk (Vavooon) 28 Apr 2021 |
|
||||||
| Volodymyr Nazarchuk (Vavooon) 4/28/2021 |
|
| Mike White (kamaaina) 09 Jun 2021 |
|
||||||
| mike white (kamaaina) 6/9/2021 |
|
| |
|
||||||
\*------------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
#include "HyperXAlloyOriginsCoreController.h"
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include "HyperXAlloyOriginsCoreController.h"
|
||||||
|
|
||||||
// Skip these indices in the color output
|
// 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};
|
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 |
|
| HyperXAlloyOriginsCoreController.h |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for HyperX Alloy |
|
| Driver for HyperX Alloy Origins Core keyboard |
|
||||||
| Origins Core RGB Keyboard lighting |
|
| |
|
||||||
| controller |
|
| Volodymyr Nazarchuk (Vavooon) 28 Apr 2021 |
|
||||||
| |
|
| |
|
||||||
| Volodymyr Nazarchuk (Vavooon) 4/28/2021 |
|
| This file is part of the OpenRGB project |
|
||||||
\*------------------------------------------*/
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBController.h"
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <hidapi/hidapi.h>
|
#include <hidapi/hidapi.h>
|
||||||
|
#include "RGBController.h"
|
||||||
#pragma once
|
|
||||||
|
|
||||||
class HyperXAlloyOriginsCoreController
|
class HyperXAlloyOriginsCoreController
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,19 @@
|
||||||
/*------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_HyperXAlloyOriginsCore.cpp |
|
| RGBController_HyperXAlloyOriginsCore.cpp |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for HyperX Alloy |
|
| RGBController for HyperX Alloy Origins Core keyboard |
|
||||||
| Origins Core RGB Keyboard |
|
| |
|
||||||
| |
|
| Volodymyr Nazarchuk (Vavooon) 28 Apr 2021 |
|
||||||
| Volodymyr Nazarchuk (Vavooon) 4/28/2021 |
|
| |
|
||||||
\*------------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBControllerKeyNames.h"
|
#include "RGBControllerKeyNames.h"
|
||||||
#include "RGBController_HyperXAlloyOriginsCore.h"
|
#include "RGBController_HyperXAlloyOriginsCore.h"
|
||||||
|
|
||||||
using namespace std::chrono_literals;
|
using namespace std::chrono_literals;
|
||||||
|
|
||||||
|
|
||||||
#define HYPERX_MIN_BRIGHTNESS 0
|
#define HYPERX_MIN_BRIGHTNESS 0
|
||||||
#define HYPERX_MAX_BRIGHTNESS 255
|
#define HYPERX_MAX_BRIGHTNESS 255
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,17 @@
|
||||||
/*------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_HyperXAlloyOriginsCore.h |
|
| RGBController_HyperXAlloyOriginsCore.h |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for HyperX Alloy |
|
| RGBController for HyperX Alloy Origins Core keyboard |
|
||||||
| Origins Core RGB Keyboard |
|
| |
|
||||||
| |
|
| Volodymyr Nazarchuk (Vavooon) 28 Apr 2021 |
|
||||||
| Volodymyr Nazarchuk (Vavooon) 4/28/2021 |
|
| |
|
||||||
\*------------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <chrono>
|
|
||||||
|
|
||||||
|
#include <chrono>
|
||||||
#include "RGBController.h"
|
#include "RGBController.h"
|
||||||
#include "HyperXAlloyOriginsCoreController.h"
|
#include "HyperXAlloyOriginsCoreController.h"
|
||||||
|
|
||||||
|
|
@ -22,15 +24,15 @@ public:
|
||||||
void SetupZones();
|
void SetupZones();
|
||||||
|
|
||||||
void ResizeZone(int zone, int new_size);
|
void ResizeZone(int zone, int new_size);
|
||||||
|
|
||||||
void DeviceUpdateLEDs();
|
void DeviceUpdateLEDs();
|
||||||
void UpdateZoneLEDs(int zone);
|
void UpdateZoneLEDs(int zone);
|
||||||
void UpdateSingleLED(int led);
|
void UpdateSingleLED(int led);
|
||||||
|
|
||||||
void DeviceUpdateMode();
|
void DeviceUpdateMode();
|
||||||
|
|
||||||
void KeepaliveThread();
|
void KeepaliveThread();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HyperXAlloyOriginsCoreController* controller;
|
HyperXAlloyOriginsCoreController* controller;
|
||||||
std::thread* keepalive_thread;
|
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 "Detector.h"
|
||||||
#include "HyperXAlloyEliteController.h"
|
#include "HyperXAlloyEliteController.h"
|
||||||
#include "HyperXAlloyElite2Controller.h"
|
#include "HyperXAlloyElite2Controller.h"
|
||||||
|
|
@ -12,7 +22,6 @@
|
||||||
#include "RGBController_HyperXAlloyOrigins.h"
|
#include "RGBController_HyperXAlloyOrigins.h"
|
||||||
#include "RGBController_HyperXAlloyOriginsCore.h"
|
#include "RGBController_HyperXAlloyOriginsCore.h"
|
||||||
#include "RGBController_HyperXAlloyOrigins60and65.h"
|
#include "RGBController_HyperXAlloyOrigins60and65.h"
|
||||||
#include <hidapi/hidapi.h>
|
|
||||||
|
|
||||||
/*-----------------------------------------------------*\
|
/*-----------------------------------------------------*\
|
||||||
| HyperX keyboard vendor and product IDs |
|
| HyperX keyboard vendor and product IDs |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue