From 0139b47d85de7fb59ef4ed69e9fa5da8a68d025c Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Fri, 14 Jun 2024 11:44:37 -0500 Subject: [PATCH] Update Roccat Sense Aimo controller files to new standardized header comment --- .../RGBController_RoccatSenseAimo.cpp | 17 +++++++------ .../RGBController_RoccatSenseAimo.h | 19 ++++++++------ .../RoccatSenseAimoController.cpp | 25 ++++++++++--------- .../RoccatSenseAimoController.h | 19 ++++++++------ 4 files changed, 45 insertions(+), 35 deletions(-) diff --git a/Controllers/RoccatController/RoccatSenseAimoController/RGBController_RoccatSenseAimo.cpp b/Controllers/RoccatController/RoccatSenseAimoController/RGBController_RoccatSenseAimo.cpp index 7c82ea14..4df3cd1a 100644 --- a/Controllers/RoccatController/RoccatSenseAimoController/RGBController_RoccatSenseAimo.cpp +++ b/Controllers/RoccatController/RoccatSenseAimoController/RGBController_RoccatSenseAimo.cpp @@ -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" diff --git a/Controllers/RoccatController/RoccatSenseAimoController/RGBController_RoccatSenseAimo.h b/Controllers/RoccatController/RoccatSenseAimoController/RGBController_RoccatSenseAimo.h index a6a2247f..bad13dcb 100644 --- a/Controllers/RoccatController/RoccatSenseAimoController/RGBController_RoccatSenseAimo.h +++ b/Controllers/RoccatController/RoccatSenseAimoController/RGBController_RoccatSenseAimo.h @@ -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" diff --git a/Controllers/RoccatController/RoccatSenseAimoController/RoccatSenseAimoController.cpp b/Controllers/RoccatController/RoccatSenseAimoController/RoccatSenseAimoController.cpp index 25070171..43118f29 100644 --- a/Controllers/RoccatController/RoccatSenseAimoController/RoccatSenseAimoController.cpp +++ b/Controllers/RoccatController/RoccatSenseAimoController/RoccatSenseAimoController.cpp @@ -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 - #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); diff --git a/Controllers/RoccatController/RoccatSenseAimoController/RoccatSenseAimoController.h b/Controllers/RoccatController/RoccatSenseAimoController/RoccatSenseAimoController.h index 8a63a853..f1b8b6c3 100644 --- a/Controllers/RoccatController/RoccatSenseAimoController/RoccatSenseAimoController.h +++ b/Controllers/RoccatController/RoccatSenseAimoController/RoccatSenseAimoController.h @@ -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 +#include "RGBController.h" enum {