Update Roccat Vulcan keyboard controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-06-17 21:22:23 -05:00
parent edb6a8aed0
commit 90744b58dd
5 changed files with 65 additions and 57 deletions

View file

@ -1,15 +1,17 @@
/*-----------------------------------------*\
| RGBController_RoccatVulcanKeyboard.cpp |
| |
| Generic RGB Interface for OpenRGB |
| |
| |
| Mola19 17/12/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_RoccatVulcanKeyboard.cpp |
| |
| RGBController for Roccat Vulcan keyboard |
| |
| Mola19 17 Dec 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <vector>
#include "RGBControllerKeyNames.h"
#include "RGBController_RoccatVulcanKeyboard.h"
#include <vector>
#define NA 0xFFFFFFFF
@ -21,7 +23,7 @@
@direct :white_check_mark:
@effects :white_check_mark:
@detectors DetectRoccatVulcanKeyboardControllers
@comment The mode "Default" differs from device to device and
@comment The mode "Default" differs from device to device and
and sometimes also based on which profile you are on.
Often it is very close to the rainbow mode.
\*-------------------------------------------------------------------*/
@ -55,7 +57,7 @@ RGBController_RoccatVulcanKeyboard::RGBController_RoccatVulcanKeyboard(RoccatVul
Direct.brightness_max = ROCCAT_VULCAN_BRIGHTNESS_MAX;
Direct.brightness = ROCCAT_VULCAN_BRIGHTNESS_DEFAULT;
}
modes.push_back(Direct);
mode Static;

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
| RGBController_RoccatVulcanKeyboard.h |
| |
| Generic RGB Interface for Roccat Vulcan |
| Keyboard controller |
| |
| Mola19 17/12/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_RoccatVulcanKeyboard.h |
| |
| RGBController for Roccat Vulcan keyboard |
| |
| Mola19 17 Dec 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "RoccatVulcanKeyboardController.h"

View file

@ -1,20 +1,20 @@
/*-------------------------------------------------------------------*\
| RoccatVulcanKeyboardController.cpp |
| |
| Driver for Roccat Vulcan Keyboard |
| |
| Mola19 17/12/2021 |
| |
\*-------------------------------------------------------------------*/
#include "RoccatVulcanKeyboardController.h"
/*---------------------------------------------------------*\
| RoccatVulcanKeyboardController.cpp |
| |
| Driver for Roccat Vulcan keyboard |
| |
| Mola19 17 Dec 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <chrono>
#include <cstring>
#include <math.h>
#include <chrono>
#include <thread>
#include <vector>
#include "RoccatVulcanKeyboardController.h"
#include "LogManager.h"
RoccatVulcanKeyboardController::RoccatVulcanKeyboardController(hid_device* dev_ctrl_handle, hid_device* dev_led_handle, char *path, uint16_t pid)
@ -157,11 +157,11 @@ void RoccatVulcanKeyboardController::SendColors(std::vector<led_color> colors)
column_length = 12;
protocol_version = 1;
}
unsigned char packet_num = ceil((float) packet_length / 64);
std::vector<std::vector<uint8_t>> bufs(packet_num);
for(int p = 0; p < packet_num; p++)
{
bufs[p].resize(65);

View file

@ -1,19 +1,20 @@
/*-------------------------------------------------------------------*\
| RoccatVulcanKeyboardController.h |
| |
| Driver for Roccat Vulcan Keyboard |
| |
| Mola19 17/12/2021 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RoccatVulcanKeyboardController.h |
| |
| Driver for Roccat Vulcan keyboard |
| |
| Mola19 17 Dec 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "RoccatVulcanKeyboardLayouts.h"
#include <string>
#include <hidapi/hidapi.h>
#include "RGBController.h"
#include "RoccatVulcanKeyboardLayouts.h"
/*--------------------------------------------------------------------------------*\
| KEYBOARDS |

View file

@ -1,19 +1,21 @@
/*-----------------------------------------*\
| RoccatVulcanKeyboardLayouts.h |
| |
| Keyboard Layouts for Roccat Vulcan |
| Keyboard USB RGB lighting controller |
| |
| Mola19 09/29/2022 |
\*-----------------------------------------*/
#include "RGBControllerKeyNames.h"
#include <vector>
#include <map>
#include "RGBController.h"
/*---------------------------------------------------------*\
| RoccatVulcanKeyboardLayouts.h |
| |
| Layouts for Roccat Vulcan keyboard |
| |
| Mola19 29 Sep 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <map>
#include <vector>
#include "RGBControllerKeyNames.h"
#include "RGBController.h"
enum
{
ROCCAT_VULCAN_LAYOUT_US = 0,