From c8bafd10aad4a13a56487e53e419382b77a196c0 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sun, 19 May 2024 17:32:41 -0500 Subject: [PATCH] Update Gigabyte Aorus mouse controller files to new standardized header comment --- .../GigabyteAorusMouseController.cpp | 21 ++++++++------- .../GigabyteAorusMouseController.h | 21 ++++++++------- .../GigabyteAorusMouseControllerDetect.cpp | 11 ++++++++ .../RGBController_GigabyteAorusMouse.cpp | 26 +++++++++---------- .../RGBController_GigabyteAorusMouse.h | 19 +++++++------- 5 files changed, 58 insertions(+), 40 deletions(-) diff --git a/Controllers/GigabyteAorusMouseController/GigabyteAorusMouseController.cpp b/Controllers/GigabyteAorusMouseController/GigabyteAorusMouseController.cpp index 8e1c3ce0..8be767ab 100644 --- a/Controllers/GigabyteAorusMouseController/GigabyteAorusMouseController.cpp +++ b/Controllers/GigabyteAorusMouseController/GigabyteAorusMouseController.cpp @@ -1,13 +1,16 @@ -/*-----------------------------------------*\ -| GigabyteAorusMouseController.cpp | -| | -| Driver for Gigabyte Aorus Mouse lighting | -| controller | -| | -| Guimard Morgan (morg) 12/29/2022 | -\*-----------------------------------------*/ -#include "GigabyteAorusMouseController.h" +/*---------------------------------------------------------*\ +| GigabyteAorusMouseController.cpp | +| | +| Driver for Gigabyte Aorus mouse | +| | +| Morgan Guimard (morg) 29 Dec 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include +#include "GigabyteAorusMouseController.h" GigabyteAorusMouseController::GigabyteAorusMouseController(hid_device* dev_handle, const hid_device_info& info) { diff --git a/Controllers/GigabyteAorusMouseController/GigabyteAorusMouseController.h b/Controllers/GigabyteAorusMouseController/GigabyteAorusMouseController.h index afc59922..a19ce69c 100644 --- a/Controllers/GigabyteAorusMouseController/GigabyteAorusMouseController.h +++ b/Controllers/GigabyteAorusMouseController/GigabyteAorusMouseController.h @@ -1,16 +1,19 @@ -/*-----------------------------------------*\ -| GigabyteAorusMouseController.h | -| | -| Driver for Gigabyte Aorus Mouse lighting | -| controller - header file | -| | -| Guimard Morgan (morg) 12/29/2022 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| GigabyteAorusMouseController.h | +| | +| Driver for Gigabyte Aorus mouse | +| | +| Morgan Guimard (morg) 29 Dec 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #pragma once -#include "RGBController.h" #include #include +#include "RGBController.h" #define GIGABYTE_AORUS_MOUSE_REPORT_SIZE 8 #define GIGABYTE_AORUS_MOUSE_DIRECT_CMD 0xCD diff --git a/Controllers/GigabyteAorusMouseController/GigabyteAorusMouseControllerDetect.cpp b/Controllers/GigabyteAorusMouseController/GigabyteAorusMouseControllerDetect.cpp index 8f6b4b33..60f5ab93 100644 --- a/Controllers/GigabyteAorusMouseController/GigabyteAorusMouseControllerDetect.cpp +++ b/Controllers/GigabyteAorusMouseController/GigabyteAorusMouseControllerDetect.cpp @@ -1,3 +1,14 @@ +/*---------------------------------------------------------*\ +| GigabyteAorusMouseControllerDetect.cpp | +| | +| Detector for Gigabyte Aorus mouse | +| | +| Morgan Guimard (morg) 29 Dec 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "Detector.h" #include "RGBController.h" #include "hidapi/hidapi.h" diff --git a/Controllers/GigabyteAorusMouseController/RGBController_GigabyteAorusMouse.cpp b/Controllers/GigabyteAorusMouseController/RGBController_GigabyteAorusMouse.cpp index 40887535..79afa629 100644 --- a/Controllers/GigabyteAorusMouseController/RGBController_GigabyteAorusMouse.cpp +++ b/Controllers/GigabyteAorusMouseController/RGBController_GigabyteAorusMouse.cpp @@ -1,17 +1,17 @@ -/*-----------------------------------------*\ -| RGBController_GigabyteAorusMouse.cpp | -| | -| Generic RGB Interface for OpenRGB | -| Gigabyte Aorus Mouse lighting | -| USB Driver | -| | -| Guimard Morgan (morg) 12/29/2022 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_GigabyteAorusMouse.cpp | +| | +| RGBController for Gigabyte Aorus mouse | +| | +| Morgan Guimard (morg) 29 Dec 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#include "RGBController_GigabyteAorusMouse.h" - -#include #include +#include +#include "RGBController_GigabyteAorusMouse.h" /**------------------------------------------------------------------*\ @name Gigabyte Aorus mouse @@ -166,7 +166,7 @@ void RGBController_GigabyteAorusMouse::UpdateSingleLED(int /*led*/) } void RGBController_GigabyteAorusMouse::DeviceUpdateMode() -{ +{ /*---------------------------------------------------------*\ | Brightness cannot be updated in the direct mode packet | \*---------------------------------------------------------*/ diff --git a/Controllers/GigabyteAorusMouseController/RGBController_GigabyteAorusMouse.h b/Controllers/GigabyteAorusMouseController/RGBController_GigabyteAorusMouse.h index 8329a9e0..81af1c39 100644 --- a/Controllers/GigabyteAorusMouseController/RGBController_GigabyteAorusMouse.h +++ b/Controllers/GigabyteAorusMouseController/RGBController_GigabyteAorusMouse.h @@ -1,12 +1,13 @@ -/*-----------------------------------------*\ -| RGBController_GigabyteAorusMouse.h | -| | -| Generic RGB Interface for OpenRGB | -| Gigabyte Aorus Mouse lighting | -| USB Driver | -| | -| Guimard Morgan (morg) 12/29/2022 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_GigabyteAorusMouse.h | +| | +| RGBController for Gigabyte Aorus mouse | +| | +| Morgan Guimard (morg) 29 Dec 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #pragma once