Update HyperX mousemat controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-05-24 13:57:38 -05:00
parent b43f31ebfb
commit 056485fabf
5 changed files with 62 additions and 47 deletions

View file

@ -1,15 +1,16 @@
/*-----------------------------------------*\
| HyperXMousematController.cpp |
| |
| Driver for HyperX Mousemat lighting |
| controller |
| |
| Adam Honse (CalcProgrammer1) 10/25/2020 |
\*-----------------------------------------*/
#include "HyperXMousematController.h"
/*---------------------------------------------------------*\
| HyperXMousematController.cpp |
| |
| Driver for HyperX mousemat |
| |
| Adam Honse (CalcProgrammer1) 25 Oct 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "HyperXMousematController.h"
HyperXMousematController::HyperXMousematController(hidapi_wrapper hid_wrapper, hid_device* dev_handle, const char* path)
{
@ -83,7 +84,7 @@ void HyperXMousematController::SendDirect
| Set up Select Profile packet |
\*-----------------------------------------------------*/
buf[0x00] = 0x00;
for(int i = 0; i < 16; i++)
{
buf[(i * 4) + 1] = 0x81;
@ -106,7 +107,7 @@ void HyperXMousematController::SendDirect
| Set up Select Profile packet |
\*-----------------------------------------------------*/
buf[0x00] = 0x00;
for(int i = 0; i < 16; i++)
{
buf[(i * 4) + 1] = 0x81;

View file

@ -1,20 +1,20 @@
/*-----------------------------------------*\
| HyperXMousematController.h |
| |
| Definitions and types for HyperX |
| mousemat lighting controller |
| |
| Adam Honse (CalcProgrammer1) 10/25/2020 |
\*-----------------------------------------*/
#include "RGBController.h"
#include <string>
#include "hidapi_wrapper.h"
/*---------------------------------------------------------*\
| HyperXMousematController.h |
| |
| Driver for HyperX mousemat |
| |
| Adam Honse (CalcProgrammer1) 25 Oct 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>
#include "RGBController.h"
#include "hidapi_wrapper.h"
class HyperXMousematController
{
public:

View file

@ -1,9 +1,19 @@
/*---------------------------------------------------------*\
| HyperXMousematControllerDetect.cpp |
| |
| Detector for HyperX mousemat |
| |
| Adam Honse (CalcProgrammer1) 25 Oct 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <vector>
#include "Detector.h"
#include "HyperXMousematController.h"
#include "RGBController.h"
#include "RGBController_HyperXMousemat.h"
#include <vector>
#include "hidapi_wrapper.h"
/*-----------------------------------------------------*\

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_HyperXMousemat.cpp |
| |
| Generic RGB Interface for HyperX |
| mousemat |
| |
| Adam Honse (CalcProgrammer1) 10/25/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_HyperXMousemat.cpp |
| |
| RGBController for HyperX mousemat |
| |
| Adam Honse (CalcProgrammer1) 25 Oct 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_HyperXMousemat.h"

View file

@ -1,15 +1,17 @@
/*-----------------------------------------*\
| RGBController_HyperXMousemat.h |
| |
| Generic RGB Interface for HyperX |
| mousemat |
| |
| Adam Honse (CalcProgrammer1) 10/25/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_HyperXMousemat.h |
| |
| RGBController for HyperX mousemat |
| |
| Adam Honse (CalcProgrammer1) 25 Oct 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 "HyperXMousematController.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:
HyperXMousematController* controller;
std::thread* keepalive_thread;