From 281b02b049bac0d4d5234be5ce7c6b9784724ccc Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Fri, 31 May 2024 11:38:22 -0500 Subject: [PATCH] Update MSI 3-zone keyboard controller files to new standardized header comment --- .../MSI3ZoneController/MSI3ZoneController.cpp | 18 +++++++------ .../MSI3ZoneController/MSI3ZoneController.h | 25 ++++++++++--------- .../MSI3ZoneControllerDetect.cpp | 15 +++++++++-- .../RGBController_MSI3Zone.cpp | 18 +++++++------ .../RGBController_MSI3Zone.h | 19 ++++++++------ 5 files changed, 57 insertions(+), 38 deletions(-) diff --git a/Controllers/MSI3ZoneController/MSI3ZoneController.cpp b/Controllers/MSI3ZoneController/MSI3ZoneController.cpp index a7a0202b..af31e40a 100644 --- a/Controllers/MSI3ZoneController/MSI3ZoneController.cpp +++ b/Controllers/MSI3ZoneController/MSI3ZoneController.cpp @@ -1,11 +1,13 @@ -/*-----------------------------------------*\ -| MSI3ZoneController.cpp | -| | -| Driver for MSI/Steelseries 3-Zone | -| Keyboard lighting controller | -| | -| Adam Honse (CalcProgrammer1) 12/25/2019 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| MSI3ZoneController.cpp | +| | +| Driver for MSI/SteelSeries 3-Zone keyboard | +| | +| Adam Honse (CalcProgrammer1) 25 Dec 2019 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #include "MSI3ZoneController.h" diff --git a/Controllers/MSI3ZoneController/MSI3ZoneController.h b/Controllers/MSI3ZoneController/MSI3ZoneController.h index 38fb619c..64f62945 100644 --- a/Controllers/MSI3ZoneController/MSI3ZoneController.h +++ b/Controllers/MSI3ZoneController/MSI3ZoneController.h @@ -1,18 +1,19 @@ -/*-----------------------------------------*\ -| MSI3ZoneController.h | -| | -| Definitions and types for MSI/Steelseries| -| 3-Zone Keyboard lighting controller | -| | -| Adam Honse (CalcProgrammer1) 12/25/2019 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| MSI3ZoneController.h | +| | +| Driver for MSI/SteelSeries 3-Zone keyboard | +| | +| Adam Honse (CalcProgrammer1) 25 Dec 2019 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#include "RGBController.h" +#pragma once #include #include - -#pragma once +#include "RGBController.h" class MSI3ZoneController { @@ -25,7 +26,7 @@ public: std::string GetSerialString(); void SetLEDs(std::vector colors); - + private: char device_name[32]; hid_device* dev; diff --git a/Controllers/MSI3ZoneController/MSI3ZoneControllerDetect.cpp b/Controllers/MSI3ZoneController/MSI3ZoneControllerDetect.cpp index 78cdd154..09a49b51 100644 --- a/Controllers/MSI3ZoneController/MSI3ZoneControllerDetect.cpp +++ b/Controllers/MSI3ZoneController/MSI3ZoneControllerDetect.cpp @@ -1,8 +1,19 @@ +/*---------------------------------------------------------*\ +| MSI3ZoneControllerDetect.cpp | +| | +| Detector for MSI/SteelSeries 3-Zone keyboard | +| | +| Adam Honse (CalcProgrammer1) 25 Dec 2019 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#include #include "Detector.h" #include "MSI3ZoneController.h" #include "RGBController.h" #include "RGBController_MSI3Zone.h" -#include #define MSI_3_ZONE_KEYBOARD_VID 0x1770 #define MSI_3_ZONE_KEYBOARD_PID 0xFF00 @@ -25,7 +36,7 @@ void DetectMSI3ZoneControllers(hid_device_info* info, const std::string&) MSI3ZoneController* controller = new MSI3ZoneController(dev, info->path); RGBController_MSI3Zone* rgb_controller = new RGBController_MSI3Zone(controller); // Constructor sets the name - + ResourceManager::get()->RegisterRGBController(rgb_controller); } } /* DetectMSI3ZoneControllers() */ diff --git a/Controllers/MSI3ZoneController/RGBController_MSI3Zone.cpp b/Controllers/MSI3ZoneController/RGBController_MSI3Zone.cpp index 8d6d22ec..d5164f3a 100644 --- a/Controllers/MSI3ZoneController/RGBController_MSI3Zone.cpp +++ b/Controllers/MSI3ZoneController/RGBController_MSI3Zone.cpp @@ -1,11 +1,13 @@ -/*-----------------------------------------*\ -| RGBController_MSI3Zone.cpp | -| | -| Generic RGB Interface for MSI/Steelseries| -| 3-Zone Keyboard | -| | -| Adam Honse (CalcProgrammer1) 12/25/2019 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_MSI3Zone.cpp | +| | +| RGBController for MSI/SteelSeries 3-Zone keyboard | +| | +| Adam Honse (CalcProgrammer1) 25 Dec 2019 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #include "RGBController_MSI3Zone.h" diff --git a/Controllers/MSI3ZoneController/RGBController_MSI3Zone.h b/Controllers/MSI3ZoneController/RGBController_MSI3Zone.h index 9d61e659..c1f8dd3b 100644 --- a/Controllers/MSI3ZoneController/RGBController_MSI3Zone.h +++ b/Controllers/MSI3ZoneController/RGBController_MSI3Zone.h @@ -1,13 +1,16 @@ -/*-----------------------------------------*\ -| RGBController_MSI3Zone.h | -| | -| Generic RGB Interface for MSI/Steelseries| -| 3-Zone Keyboard | -| | -| Adam Honse (CalcProgrammer1) 12/25/2019 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_MSI3Zone.h | +| | +| RGBController for MSI/SteelSeries 3-Zone keyboard | +| | +| Adam Honse (CalcProgrammer1) 25 Dec 2019 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #pragma once + #include "RGBController.h" #include "MSI3ZoneController.h"