Update HyperX mouse controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-05-24 13:53:48 -05:00
parent 1975c63b71
commit b43f31ebfb
21 changed files with 249 additions and 209 deletions

View file

@ -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);
}

View file

@ -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();

View file

@ -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"

View file

@ -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;