Update Winbond Gaming Keyboard controller files to new standardized header comment
This commit is contained in:
parent
d1673b3304
commit
d7ffb9e13f
5 changed files with 58 additions and 57 deletions
|
|
@ -1,16 +1,17 @@
|
|||
/*---------------------------------------------*\
|
||||
| RGBController_WinbondGamingKeyboard.cpp |
|
||||
| |
|
||||
| Driver for "Winbond Gaming Keyboard" boards, |
|
||||
| like Pulsar PCMK TKL Keyboard |
|
||||
| |
|
||||
| Daniel Gibson 3 December 2023 |
|
||||
\*---------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_WinbondGamingKeyboard.cpp |
|
||||
| |
|
||||
| RGBController for Winbond Gaming Keyboard |
|
||||
| |
|
||||
| Daniel Gibson 03 Dec 2023 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController_WinbondGamingKeyboard.h"
|
||||
#include "RGBControllerKeyNames.h"
|
||||
#include "KeyboardLayoutManager.h"
|
||||
|
||||
#include "LogManager.h"
|
||||
|
||||
/**------------------------------------------------------------------*\
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*---------------------------------------------*\
|
||||
| RGBController_WinbondGamingKeyboard.h |
|
||||
| |
|
||||
| Driver for "Winbond Gaming Keyboard" boards, |
|
||||
| like Pulsar PCMK TKL Keyboard |
|
||||
| |
|
||||
| Daniel Gibson 3 December 2023 |
|
||||
\*---------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_WinbondGamingKeyboard.h |
|
||||
| |
|
||||
| RGBController for Winbond Gaming Keyboard |
|
||||
| |
|
||||
| Daniel Gibson 03 Dec 2023 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
|
|
|
|||
|
|
@ -1,18 +1,19 @@
|
|||
/*---------------------------------------------*\
|
||||
| WinbondGamingKeyboardController.cpp |
|
||||
| |
|
||||
| Driver for "Winbond Gaming Keyboard" boards, |
|
||||
| like Pulsar PCMK TKL Keyboard |
|
||||
| |
|
||||
| Daniel Gibson 3 December 2023 |
|
||||
\*---------------------------------------------*/
|
||||
|
||||
#include "WinbondGamingKeyboardController.h"
|
||||
#include "RGBController_WinbondGamingKeyboard.h"
|
||||
#include "LogManager.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| WinbondGamingKeyboardController.cpp |
|
||||
| |
|
||||
| Driver for Winbond Gaming Keyboard |
|
||||
| |
|
||||
| Daniel Gibson 03 Dec 2023 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <algorithm>
|
||||
#include <string.h>
|
||||
#include "WinbondGamingKeyboardController.h"
|
||||
#include "RGBController_WinbondGamingKeyboard.h"
|
||||
#include "LogManager.h"
|
||||
|
||||
#define WINBOND_HID_DATA_LEN 64
|
||||
|
||||
|
|
@ -282,7 +283,7 @@ void WinbondGamingKeyboardController::SetLEDsData(const std::vector<RGBColor>& c
|
|||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------*\
|
||||
| the following two lines are the inverse of the KV() macro in RGBController_WinbondGamingKeyboard.h |
|
||||
\*--------------------------------------------------------------------------------------------------*/
|
||||
|
|
@ -300,7 +301,7 @@ void WinbondGamingKeyboardController::SetLEDsData(const std::vector<RGBColor>& c
|
|||
}
|
||||
|
||||
msg_num &= 7; // 0..7
|
||||
|
||||
|
||||
/*----------------------------*\
|
||||
| transform 0..0xFF to 0..0xC1 |
|
||||
\*----------------------------*/
|
||||
|
|
|
|||
|
|
@ -1,22 +1,21 @@
|
|||
/*---------------------------------------------*\
|
||||
| WinbondGamingKeyboardController.h |
|
||||
| |
|
||||
| Driver for "Winbond Gaming Keyboard" boards, |
|
||||
| like Pulsar PCMK TKL Keyboard |
|
||||
| |
|
||||
| Daniel Gibson 3 December 2023 |
|
||||
\*---------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| WinbondGamingKeyboardController.h |
|
||||
| |
|
||||
| Driver for Winbond Gaming Keyboard |
|
||||
| |
|
||||
| Daniel Gibson 03 Dec 2023 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RGBController.h"
|
||||
#include "KeyboardLayoutManager.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
#include "RGBController.h"
|
||||
#include "KeyboardLayoutManager.h"
|
||||
|
||||
class WinbondGamingKeyboardController
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,31 +1,29 @@
|
|||
/*---------------------------------------------*\
|
||||
| WinbondGamingKeyboardControllerDetect.cpp |
|
||||
| |
|
||||
| Driver for "Winbond Gaming Keyboard" boards, |
|
||||
| like Pulsar PCMK TKL Keyboard |
|
||||
| |
|
||||
| Daniel Gibson 3 December 2023 |
|
||||
\*---------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| WinbondGamingKeyboardControllerDetect.cpp |
|
||||
| |
|
||||
| Detector for Winbond Gaming Keyboard |
|
||||
| |
|
||||
| Daniel Gibson 03 Dec 2023 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <hidapi/hidapi.h>
|
||||
#include "Detector.h"
|
||||
#include "RGBController_WinbondGamingKeyboard.h"
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
#include "LogManager.h"
|
||||
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Winbond vendor ID |
|
||||
\*-----------------------------------------------------*/
|
||||
#define WINBOND_VID 0x0416
|
||||
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Winbond product ID |
|
||||
\*-----------------------------------------------------*/
|
||||
#define WINBOND_GAMING_KEYBOARD_PID 0xB23C
|
||||
|
||||
|
||||
void DetectWinbondGamingKeyboard(hid_device_info* info, const std::string& name)
|
||||
{
|
||||
hid_device* dev = hid_open_path(info->path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue