Update Mountain keyboard controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-05-31 11:34:47 -05:00
parent d15ce7d7ab
commit a9ddbf1b95
5 changed files with 57 additions and 39 deletions

View file

@ -1,17 +1,18 @@
/*------------------------------------------*\
| MountainKeyboardController.cpp |
| |
| Driver for Mountain RGB keyboard lighting |
| controller |
| |
| Wojciech Lazarski 01/2023 |
| |
\*------------------------------------------*/
/*---------------------------------------------------------*\
| MountainKeyboardController.cpp |
| |
| Driver for Mountain keyboard |
| |
| Wojciech Lazarski Jan 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "MountainKeyboardController.h"
#include <chrono>
#include <cstring>
#include <thread>
#include <chrono>
#include "MountainKeyboardController.h"
using namespace std::chrono_literals;

View file

@ -1,17 +1,19 @@
/*-----------------------------------------*\
| MountainKeyboardController.h |
| |
| Definitions and types for Mountain RGB |
| keyboard lighting controller |
| |
| Wojciech Lazarski 01/2023 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| MountainKeyboardController.h |
| |
| Driver for Mountain keyboard |
| |
| Wojciech Lazarski Jan 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>
#include <hidapi/hidapi.h>
#pragma once
/*-----------------------------------------------------*\
| Mountain vendor ID |
\*-----------------------------------------------------*/

View file

@ -1,8 +1,19 @@
/*---------------------------------------------------------*\
| MountainKeyboardControllerDetect.cpp |
| |
| Detector for Mountain keyboard |
| |
| Wojciech Lazarski Jan 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <hidapi/hidapi.h>
#include "Detector.h"
#include "MountainKeyboardController.h"
#include "RGBController.h"
#include "RGBController_MountainKeyboard.h"
#include <hidapi/hidapi.h>
/*----------------------------------------------------------------------------------------*\
| |
@ -26,4 +37,3 @@ void DetectMountainKeyboardControllers(hid_device_info* info, const std::string&
} /* DetectMountainKeyboardControllers() */
REGISTER_HID_DETECTOR_IPU("Mountain Everest", DetectMountainKeyboardControllers, MOUNTAIN_VID, MOUNTAIN_EVEREST_PID, 3, 0xFF00, 0x01);

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_MountainKeyboard.cpp |
| |
| Generic RGB Interface for Mountain RGB |
| keyboard devices |
| |
| Wojciech Lazarski 01/2023 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_MountainKeyboard.cpp |
| |
| RGBController for Mountain keyboard |
| |
| Wojciech Lazarski Jan 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBControllerKeyNames.h"
#include "RGBController_MountainKeyboard.h"

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
| RGBController_MountainKeyboard.h |
| |
| Generic RGB Interface for Mountain RGB |
| keyboard devices |
| |
| Wojciech Lazarski 01/2023 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_MountainKeyboard.h |
| |
| RGBController for Mountain keyboard |
| |
| Wojciech Lazarski Jan 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "MountainKeyboardController.h"
@ -39,7 +42,7 @@ public:
void SetupZones();
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);