mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-18 11:35:21 -04:00
Update HyperX mouse controller files to new standardized header comment
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user