mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 06:11:07 -04:00
Update HyperX mouse controller files to new standardized header comment
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXMouseControllerDetect.cpp |
|
||||
| |
|
||||
| Detector for HyperX mouse |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <hidapi/hidapi.h>
|
||||
#include "Detector.h"
|
||||
#include "HyperXPulsefireFPSProController.h"
|
||||
#include "HyperXPulsefireSurgeController.h"
|
||||
@@ -9,7 +19,6 @@
|
||||
#include "RGBController_HyperXPulsefireSurge.h"
|
||||
#include "RGBController_HyperXPulsefireDart.h"
|
||||
#include "RGBController_HyperXPulsefireRaid.h"
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| HyperX mouse vendor IDs |
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
/*-------------------------------------------*\
|
||||
| HyperXPulsefireDartController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Pulsefire Dart |
|
||||
| lighting controller |
|
||||
| |
|
||||
| Santeri Pikarinen (santeri3700) 12/26/2020 |
|
||||
\*-------------------------------------------*/
|
||||
|
||||
#include "HyperXPulsefireDartController.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXPulsefireDartController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Pulsefire Dart |
|
||||
| |
|
||||
| Santeri Pikarinen (santeri3700) 26 Dec 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include "HyperXPulsefireDartController.h"
|
||||
|
||||
HyperXPulsefireDartController::HyperXPulsefireDartController(hid_device* dev_handle, const char* path)
|
||||
{
|
||||
@@ -71,7 +72,7 @@ void HyperXPulsefireDartController::SendDirect
|
||||
buf[0x02] = led;
|
||||
buf[0x03] = mode;
|
||||
buf[0x04] = 0x08; // 8 bytes after buffer index 0x04
|
||||
|
||||
|
||||
buf[0x05] = RGBGetRValue(color);
|
||||
buf[0x06] = RGBGetGValue(color);
|
||||
buf[0x07] = RGBGetBValue(color);
|
||||
@@ -82,7 +83,7 @@ void HyperXPulsefireDartController::SendDirect
|
||||
|
||||
buf[0x0b] = brightness;
|
||||
buf[0x0c] = speed;
|
||||
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Send packet |
|
||||
\*-----------------------------------------------------*/
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*-------------------------------------------*\
|
||||
| HyperXPulsefireDartController.h |
|
||||
| |
|
||||
| Definitions and types for HyperX |
|
||||
| Pulsefire Dart lighting controller |
|
||||
| |
|
||||
| Santeri Pikarinen (santeri3700) 12/26/2020 |
|
||||
\*-------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXPulsefireDartController.h |
|
||||
| |
|
||||
| Driver for HyperX Pulsefire Dart |
|
||||
| |
|
||||
| Santeri Pikarinen (santeri3700) 26 Dec 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_HyperXPulsefireDart.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX |
|
||||
| Pulsefire Dart |
|
||||
| |
|
||||
| Santeri Pikarinen (santeri3700) 12/26/2020 |
|
||||
\*-------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXPulsefireDart.cpp |
|
||||
| |
|
||||
| RGBController for HyperX Pulsefire Dart |
|
||||
| |
|
||||
| Santeri Pikarinen (santeri3700) 26 Dec 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController_HyperXPulsefireDart.h"
|
||||
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
/*-------------------------------------------*\
|
||||
| RGBController_HyperXPulsefireDart.h |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX |
|
||||
| Pulsefire Dart |
|
||||
| |
|
||||
| Santeri Pikarinen (santeri3700) 12/26/2020 |
|
||||
\*-------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXPulsefireDart.h |
|
||||
| |
|
||||
| RGBController for HyperX Pulsefire Dart |
|
||||
| |
|
||||
| Santeri Pikarinen (santeri3700) 26 Dec 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 "HyperXPulsefireDartController.h"
|
||||
|
||||
@@ -22,14 +24,14 @@ public:
|
||||
void SetupZones();
|
||||
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void DeviceUpdateMode();
|
||||
void DeviceSaveMode();
|
||||
|
||||
|
||||
private:
|
||||
HyperXPulsefireDartController* controller;
|
||||
};
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
/*-----------------------------------------*\
|
||||
| HyperXPulsefireFPSProController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Pulsefire FPS Pro |
|
||||
| lighting controller |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 12/26/2020 |
|
||||
\*-----------------------------------------*/
|
||||
|
||||
#include "HyperXPulsefireFPSProController.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXPulsefireFPSProController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Pulsefire FPS Pro |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 26 Dec 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include "HyperXPulsefireFPSProController.h"
|
||||
|
||||
HyperXPulsefireFPSProController::HyperXPulsefireFPSProController(hid_device* dev_handle, const char* path)
|
||||
{
|
||||
@@ -64,13 +65,13 @@ void HyperXPulsefireFPSProController::SendDirect
|
||||
\*-----------------------------------------------------*/
|
||||
buf[0x00] = 0x07;
|
||||
buf[0x01] = HYPERX_PULSEFIRE_FPS_PRO_PACKET_ID_DIRECT;
|
||||
|
||||
|
||||
buf[0x02] = RGBGetRValue(color_data[0]);
|
||||
buf[0x03] = RGBGetGValue(color_data[0]);
|
||||
buf[0x04] = RGBGetBValue(color_data[0]);
|
||||
|
||||
buf[0x08] = 0xA0;
|
||||
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Send packet |
|
||||
\*-----------------------------------------------------*/
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*-----------------------------------------*\
|
||||
| HyperXPulsefireFPSProController.h |
|
||||
| |
|
||||
| Definitions and types for HyperX |
|
||||
| Pulsefire FPS Pro lighting controller |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 12/26/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXPulsefireFPSProController.h |
|
||||
| |
|
||||
| Driver for HyperX Pulsefire FPS Pro |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 26 Dec 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_HyperXPulsefireFPSPro.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX |
|
||||
| Pulsefire Surge |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 2/2/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXPulsefireFPSPro.cpp |
|
||||
| |
|
||||
| RGBController for HyperX Pulsefire FPS Pro |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 26 Dec 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController_HyperXPulsefireFPSPro.h"
|
||||
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
/*-----------------------------------------*\
|
||||
| RGBController_HyperXPulsefireFPSPro.h |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX |
|
||||
| Pulsefire FPS Pro |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 12/26/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXPulsefireFPSPro.h |
|
||||
| |
|
||||
| RGBController for HyperX Pulsefire FPS Pro |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 26 Dec 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 "HyperXPulsefireFPSProController.h"
|
||||
|
||||
@@ -22,7 +24,7 @@ public:
|
||||
void SetupZones();
|
||||
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
@@ -30,7 +32,7 @@ public:
|
||||
void DeviceUpdateMode();
|
||||
|
||||
void KeepaliveThread();
|
||||
|
||||
|
||||
private:
|
||||
HyperXPulsefireFPSProController* controller;
|
||||
std::thread* keepalive_thread;
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
/*-----------------------------------------*\
|
||||
| HyperXPulsefireHasteController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Pulsefire Haste |
|
||||
| lighting controller |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 8/19/2021 |
|
||||
\*-----------------------------------------*/
|
||||
|
||||
#include "HyperXPulsefireHasteController.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXPulsefireHasteController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Pulsefire Haste |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 19 Aug 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include "HyperXPulsefireHasteController.h"
|
||||
|
||||
HyperXPulsefireHasteController::HyperXPulsefireHasteController(hid_device* dev_handle, const char* path)
|
||||
{
|
||||
@@ -97,13 +98,13 @@ void HyperXPulsefireHasteController::SendDirectColor
|
||||
\*-----------------------------------------------------*/
|
||||
buf[0x00] = 0x00;
|
||||
buf[0x01] = HYPERX_PULSEFIRE_HASTE_PACKET_ID_COLOR;
|
||||
|
||||
|
||||
buf[0x02] = RGBGetRValue(color_data[0]);
|
||||
buf[0x03] = RGBGetGValue(color_data[0]);
|
||||
buf[0x04] = RGBGetBValue(color_data[0]);
|
||||
|
||||
buf[0x08] = 0x02;
|
||||
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Send packet |
|
||||
\*-----------------------------------------------------*/
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*-----------------------------------------*\
|
||||
| HyperXPulsefireHasteController.h |
|
||||
| |
|
||||
| Definitions and types for HyperX |
|
||||
| Pulsefire FPS Pro lighting controller |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 8/19/2021 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXPulsefireHasteController.h |
|
||||
| |
|
||||
| Driver for HyperX Pulsefire Haste |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 19 Aug 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_HyperXPulsefireHaste.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX |
|
||||
| Pulsefire Haste |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 8/19/2021 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXPulsefireHaste.cpp |
|
||||
| |
|
||||
| RGBController for HyperX Pulsefire Haste |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 19 Aug 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController_HyperXPulsefireHaste.h"
|
||||
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
/*-----------------------------------------*\
|
||||
| RGBController_HyperXPulsefireHaste.h |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX |
|
||||
| Pulsefire Haste |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 8/19/2021 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXPulsefireHaste.h |
|
||||
| |
|
||||
| RGBController for HyperX Pulsefire Haste |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 19 Aug 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 "HyperXPulsefireHasteController.h"
|
||||
|
||||
@@ -22,7 +24,7 @@ public:
|
||||
void SetupZones();
|
||||
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
@@ -30,7 +32,7 @@ public:
|
||||
void DeviceUpdateMode();
|
||||
|
||||
void KeepaliveThread();
|
||||
|
||||
|
||||
private:
|
||||
HyperXPulsefireHasteController* controller;
|
||||
std::thread* keepalive_thread;
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
/*-------------------------------------------*\
|
||||
| HyperXPulsefireRaidController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Pulsefire Raid |
|
||||
| lighting controller |
|
||||
| |
|
||||
| Morgan Guimard (morg) 04/06/2022 |
|
||||
\*-------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXPulsefireRaidController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Pulsefire Raid |
|
||||
| |
|
||||
| Morgan Guimard (morg) 06 Apr 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "HyperXPulsefireRaidController.h"
|
||||
#include <cstring>
|
||||
#include "HyperXPulsefireRaidController.h"
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
@@ -76,6 +78,6 @@ void HyperXPulsefireRaidController::SendColors(std::vector<RGBColor> colors)
|
||||
|
||||
void HyperXPulsefireRaidController::Send(unsigned char* packet)
|
||||
{
|
||||
hid_send_feature_report(dev, packet, HYPERX_PULSFIRE_RAID_PACKET_DATA_LENGTH);
|
||||
hid_send_feature_report(dev, packet, HYPERX_PULSFIRE_RAID_PACKET_DATA_LENGTH);
|
||||
std::this_thread::sleep_for(10ms);
|
||||
}
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*-------------------------------------------*\
|
||||
| HyperXPulsefireRaidController.h |
|
||||
| |
|
||||
| Definitions and types for HyperX |
|
||||
| Pulsefire Raid lighting controller |
|
||||
| |
|
||||
| Morgan Guimard (morg) 04/06/2022 |
|
||||
\*-------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXPulsefireRaidController.h |
|
||||
| |
|
||||
| Driver for HyperX Pulsefire Raid |
|
||||
| |
|
||||
| Morgan Guimard (morg) 06 Apr 2022 |
|
||||
| |
|
||||
| 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 HYPERX_PULSFIRE_RAID_PACKET_DATA_LENGTH 264
|
||||
#define HYPERX_PULSFIRE_RAID_REPORT_ID 0x07
|
||||
@@ -30,7 +31,7 @@ class HyperXPulsefireRaidController
|
||||
{
|
||||
public:
|
||||
HyperXPulsefireRaidController(hid_device* dev_handle, const hid_device_info& info);
|
||||
~HyperXPulsefireRaidController();
|
||||
~HyperXPulsefireRaidController();
|
||||
|
||||
std::string GetSerialString();
|
||||
std::string GetDeviceLocation();
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
/*-------------------------------------------*\
|
||||
| RGBController_HyperXPulsefireRaid.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX |
|
||||
| Pulsefire Raid |
|
||||
| |
|
||||
| Morgan Guimard (morg) 04/06/2022 |
|
||||
\*-------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXPulsefireRaid.cpp |
|
||||
| |
|
||||
| RGBController for HyperX Pulsefire Raid |
|
||||
| |
|
||||
| Morgan Guimard (morg) 06 Apr 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController_HyperXPulsefireRaid.h"
|
||||
|
||||
@@ -61,7 +63,7 @@ RGBController_HyperXPulsefireRaid::~RGBController_HyperXPulsefireRaid()
|
||||
}
|
||||
|
||||
void RGBController_HyperXPulsefireRaid::SetupZones()
|
||||
{
|
||||
{
|
||||
std::string led_names[HYPERX_PULSFIRE_RAID_LEDS_COUNT] =
|
||||
{
|
||||
"Scroll Wheel", "Logo"
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
/*-------------------------------------------*\
|
||||
| RGBController_HyperXPulsefireRaid.h |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX |
|
||||
| Pulsefire Raid |
|
||||
| |
|
||||
| Morgan Guimard (morg) 04/06/2022 |
|
||||
\*-------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXPulsefireRaid.h |
|
||||
| |
|
||||
| RGBController for HyperX Pulsefire Raid |
|
||||
| |
|
||||
| Morgan Guimard (morg) 06 Apr 2022 |
|
||||
| |
|
||||
| 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 "HyperXPulsefireRaidController.h"
|
||||
|
||||
@@ -21,14 +23,14 @@ public:
|
||||
|
||||
void SetupZones();
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void DeviceUpdateMode();
|
||||
void DeviceSaveMode();
|
||||
|
||||
|
||||
private:
|
||||
HyperXPulsefireRaidController* controller;
|
||||
std::thread* keepalive_thread;
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
/*-----------------------------------------*\
|
||||
| HyperXPulsefireSurgeController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Pulsefire Surge |
|
||||
| lighting controller |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 7/25/2020 |
|
||||
\*-----------------------------------------*/
|
||||
|
||||
#include "HyperXPulsefireSurgeController.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXPulsefireSurgeController.cpp |
|
||||
| |
|
||||
| Driver for HyperX Pulsefire Surge |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 25 Jul 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include "HyperXPulsefireSurgeController.h"
|
||||
|
||||
HyperXPulsefireSurgeController::HyperXPulsefireSurgeController(hid_device* dev_handle, const char* path)
|
||||
{
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*-----------------------------------------*\
|
||||
| HyperXPulsefireSurgeController.h |
|
||||
| |
|
||||
| Definitions and types for HyperX |
|
||||
| Pulsefire Surge lighting controller |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 7/25/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| HyperXPulsefireSurgeController.h |
|
||||
| |
|
||||
| Driver for HyperX Pulsefire Surge |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 25 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"
|
||||
|
||||
enum
|
||||
{
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
/*-----------------------------------------*\
|
||||
| RGBController_HyperXPulsefireSurge.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX |
|
||||
| Pulsefire Surge |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 2/2/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXPulsefireSurge.cpp |
|
||||
| |
|
||||
| RGBController for HyperX Pulsefire Surge |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 25 Jul 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController_HyperXPulsefireSurge.h"
|
||||
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
/*-----------------------------------------*\
|
||||
| RGBController_HyperXPulsefireSurge.h |
|
||||
| |
|
||||
| Generic RGB Interface for HyperX |
|
||||
| Pulsefire Surge |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 7/25/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_HyperXPulsefireSurge.h |
|
||||
| |
|
||||
| RGBController for HyperX Pulsefire Surge |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 25 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 "HyperXPulsefireSurgeController.h"
|
||||
|
||||
@@ -22,7 +24,7 @@ public:
|
||||
void SetupZones();
|
||||
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
@@ -30,7 +32,7 @@ public:
|
||||
void DeviceUpdateMode();
|
||||
|
||||
void KeepaliveThread();
|
||||
|
||||
|
||||
private:
|
||||
HyperXPulsefireSurgeController* controller;
|
||||
std::thread* keepalive_thread;
|
||||
|
||||
Reference in New Issue
Block a user