Update HyperX mouse controller files to new standardized header comment
This commit is contained in:
parent
1975c63b71
commit
b43f31ebfb
21 changed files with 249 additions and 209 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue