Update Roccat Sense Aimo controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-06-14 11:44:37 -05:00
parent 339c146c67
commit 0139b47d85
4 changed files with 45 additions and 35 deletions

View file

@ -1,10 +1,13 @@
/*-----------------------------------------*\
| RGBController_RoccatSenseAimo.cpp |
| |
| Generic RGB Interface for OpenRGB |
| |
| Mola19 08/09/2023 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_RoccatSenseAimo.cpp |
| |
| RGBController for Roccat Sense Aimo |
| |
| Mola19 09 Aug 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_RoccatSenseAimo.h"

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
| RGBController_RoccatSenseAimo.h |
| |
| Generic RGB Interface for Roccat Sense |
| Aimo controller |
| |
| Mola19 08/09/2023 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_RoccatSenseAimo.h |
| |
| RGBController for Roccat Sense Aimo |
| |
| Mola19 09 Aug 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "RoccatSenseAimoController.h"

View file

@ -1,16 +1,17 @@
/*-------------------------------------------------------------------*\
| RoccatSenseAimoController.cpp |
| |
| Driver for Roccat Sense Aimo |
| |
| Mola19 08/09/2023 |
\*-------------------------------------------------------------------*/
#include "RoccatSenseAimoController.h"
/*---------------------------------------------------------*\
| RoccatSenseAimoController.cpp |
| |
| Driver for Roccat Sense Aimo |
| |
| Mola19 09 Aug 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "LogManager.h"
#include "RoccatSenseAimoController.h"
RoccatSenseAimoController::RoccatSenseAimoController(hid_device* dev_handle, char *path)
{
@ -78,7 +79,7 @@ mode_struct RoccatSenseAimoController::GetMode()
default_mode.brightness = ROCCAT_SENSE_AIMO_BRIGHTNESS_DEFAULT;
default_mode.left = ToRGBColor(0, 0, 0);
default_mode.right = ToRGBColor(0, 0, 0);
return default_mode;
}
@ -114,7 +115,7 @@ void RoccatSenseAimoController::SetMode(uint8_t profile, uint8_t mode, uint8_t s
buf[0x09 + i * 8] = 0xFF; // this device uses RGBA, but OpenRGB doesn't allow it, so it is always max
}
buf[0x12] = 0x00; // this stores the swarm theme and first bit is a flag if custom is active in swarm. No usage outside Swarm
buf[0x12] = 0x00; // this stores the swarm theme and first bit is a flag if custom is active in swarm. No usage outside Swarm
int return_length = hid_send_feature_report(dev, buf, 19);

View file

@ -1,15 +1,18 @@
/*-------------------------------------------------------------------*\
| RoccatSenseAimoController.cpp |
| |
| Driver for Roccat Sense Aimo |
| |
| Mola19 08/09/2023 |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RoccatSenseAimoController.h |
| |
| Driver for Roccat Sense Aimo |
| |
| Mola19 09 Aug 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include <hidapi/hidapi.h>
#include "RGBController.h"
enum
{