Update file header comments to standardized new format for Asus legacy USB files
This commit is contained in:
parent
08304c5474
commit
93573a93ca
13 changed files with 137 additions and 107 deletions
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| AsusCerberusKeyboardController.cpp |
|
||||
| |
|
||||
| Driver for ASUS Cerberus USB lighting |
|
||||
| controller |
|
||||
| |
|
||||
| Mola19 05/28/2022 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| AsusCerberusKeyboardController.cpp |
|
||||
| |
|
||||
| Driver for ASUS Cerberus keyboard |
|
||||
| |
|
||||
| Mola19 28 May 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| AsusCerberusKeyboardController.h |
|
||||
| |
|
||||
| Definitions and types for ASUS Cerberus |
|
||||
| USB RGB lighting controller |
|
||||
| |
|
||||
| Mola19 03/03/2021 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| AsusCerberusKeyboardController.h |
|
||||
| |
|
||||
| Driver for ASUS Cerberus keyboard |
|
||||
| |
|
||||
| Mola19 03 Mar 2021 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
|
|
@ -25,7 +27,6 @@ enum
|
|||
CERBERUS_KEYBOARD_MODE_CUSTOM = 7,
|
||||
};
|
||||
|
||||
|
||||
class AsusCerberusKeyboardController
|
||||
{
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_AsusCerberusKeyboard.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for Asus Cerberus |
|
||||
| USB controller driver |
|
||||
| |
|
||||
| Mola19 05/28/2022 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_AsusCerberusKeyboard.cpp |
|
||||
| |
|
||||
| RGBController for ASUS Cerberus keyboard |
|
||||
| |
|
||||
| Mola19 28 May 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cmath>
|
||||
#include <vector>
|
||||
|
|
@ -23,12 +25,11 @@
|
|||
@comment
|
||||
\*-------------------------------------------------------------------*/
|
||||
|
||||
|
||||
//0xFFFFFFFF indicates an unused entry in matrix
|
||||
#define NA 0xFFFFFFFF
|
||||
|
||||
|
||||
static unsigned int matrix_map[6][24] = {
|
||||
static unsigned int matrix_map[6][24] =
|
||||
{
|
||||
{ 0, NA, 9, 15, 20, 25, NA, 35, 40, 45, 50, 56, 62, 67, 72, NA, 75, 79, 84, NA, NA, NA, NA, NA },
|
||||
{ 1, 6, 10, 16, 21, 26, 30, 36, 41, 46, 51, 57, 63, 68, NA, NA, 76, 80, 85, NA, 88, 93, 97, 102 },
|
||||
{ 2, NA, 11, 17, 22, 27, 31, 37, 42, 47, 52, 58, 64, 69, NA, NA, 77, 81, 86, NA, 89, 94, 98, 103 },
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_AsusCerberusKeyboard.h |
|
||||
| |
|
||||
| Generic RGB Interface for Asus Cerberus |
|
||||
| USB controller driver |
|
||||
| |
|
||||
| Mola19 03/03/2021 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_AsusCerberusKeyboard.h |
|
||||
| |
|
||||
| RGBController for ASUS Cerberus keyboard |
|
||||
| |
|
||||
| Mola19 03 Mar 2021 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
/*---------------------------------------------------------*\
|
||||
| AsusLegacyUSBControllerDetect.cpp |
|
||||
| |
|
||||
| Detector for ASUS legacy USB devices |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <stdexcept>
|
||||
#include <hidapi/hidapi.h>
|
||||
#include "Detector.h"
|
||||
|
|
@ -55,7 +64,6 @@ void DetectAsusStrixClaw(hid_device_info* info, const std::string& name)
|
|||
}
|
||||
}
|
||||
|
||||
REGISTER_HID_DETECTOR_IPU("ASUS Cerberus Mech", DetectAsusCerberusMech, ASUS_LEGACY_USB_VID, ASUS_CERBERUS_MECH_PID, 1, 0xFF01, 1);
|
||||
REGISTER_HID_DETECTOR_IPU("ASUS Sagaris GK1100", DetectAsusSagarisKeyboard, ASUS_USB_VID, ASUS_SAGARIS_GK1100_PID, 1, 0xFF02, 2);
|
||||
|
||||
REGISTER_HID_DETECTOR_IPU("ASUS ROG Strix Claw", DetectAsusStrixClaw, ASUS_LEGACY_USB_VID, ASUS_ROG_STRIX_CLAW_PID, 0, 0xFF01, 1);
|
||||
REGISTER_HID_DETECTOR_IPU("ASUS Cerberus Mech", DetectAsusCerberusMech, ASUS_LEGACY_USB_VID, ASUS_CERBERUS_MECH_PID, 1, 0xFF01, 1);
|
||||
REGISTER_HID_DETECTOR_IPU("ASUS Sagaris GK1100", DetectAsusSagarisKeyboard, ASUS_USB_VID, ASUS_SAGARIS_GK1100_PID, 1, 0xFF02, 2);
|
||||
REGISTER_HID_DETECTOR_IPU("ASUS ROG Strix Claw", DetectAsusStrixClaw, ASUS_LEGACY_USB_VID, ASUS_ROG_STRIX_CLAW_PID, 0, 0xFF01, 1);
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| AsusSagarisKeyboardController.cpp |
|
||||
| |
|
||||
| Driver for ASUS Sagaris USB lighting |
|
||||
| controller |
|
||||
| |
|
||||
| Mola19 08/20/2023 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| AsusSagarisKeyboardController.cpp |
|
||||
| |
|
||||
| Driver for ASUS Sagaris keyboard |
|
||||
| |
|
||||
| Mola19 20 Aug 2023 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include <math.h>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| AsusSagarisKeyboardController.h |
|
||||
| |
|
||||
| Definitions and types for ASUS Sagaris |
|
||||
| USB RGB lighting controller |
|
||||
| |
|
||||
| Mola19 08/20/2023 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| AsusSagarisKeyboardController.h |
|
||||
| |
|
||||
| Driver for ASUS Sagaris keyboard |
|
||||
| |
|
||||
| Mola19 20 Aug 2023 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_AsusSagarisKeyboard.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for Asus Sagaris |
|
||||
| USB controller driver |
|
||||
| |
|
||||
| Mola19 08/20/2023 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_AsusSagarisKeyboard.cpp |
|
||||
| |
|
||||
| RGBController for ASUS Sagaris keyboard |
|
||||
| |
|
||||
| Mola19 20 Aug 2023 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_AsusSagarisKeyboard.h |
|
||||
| |
|
||||
| Generic RGB Interface for Asus Sagaris |
|
||||
| USB controller driver |
|
||||
| |
|
||||
| Mola19 08/20/2023 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_AsusSagarisKeyboard.h |
|
||||
| |
|
||||
| RGBController for ASUS Sagaris keyboard |
|
||||
| |
|
||||
| Mola19 20 Aug 2023 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| AsusStrixClawController.cpp |
|
||||
| |
|
||||
| Driver for ASUS Strix USB |
|
||||
| lighting controller |
|
||||
| |
|
||||
| Mola19 08/06/2022 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| AsusStrixClawController.cpp |
|
||||
| |
|
||||
| Driver for ASUS Strix Claw mouse |
|
||||
| |
|
||||
| Mola19 06 Aug 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| AsusStrixClawController.h |
|
||||
| |
|
||||
| Definitions and types for ASUS |
|
||||
| Legacy USB RGB lighting controller |
|
||||
| |
|
||||
| Mola19 08/06/2022 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| AsusStrixClawController.h |
|
||||
| |
|
||||
| Driver for ASUS Strix Claw mouse |
|
||||
| |
|
||||
| Mola19 06 Aug 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_AsusStrixClaw.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for Asus |
|
||||
| Legacy USB controller driver |
|
||||
| |
|
||||
| Mola19 08/06/2022 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_AsusStrixClaw.cpp |
|
||||
| |
|
||||
| RGBController for ASUS Strix Claw mouse |
|
||||
| |
|
||||
| Mola19 06 Aug 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController_AsusStrixClaw.h"
|
||||
|
||||
|
|
@ -102,17 +104,17 @@ void RGBController_StrixClaw::ResizeZone(int /*zone*/, int /*new_size*/)
|
|||
|
||||
void RGBController_StrixClaw::DeviceUpdateLEDs()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
void RGBController_StrixClaw::UpdateZoneLEDs(int /*zone*/)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
void RGBController_StrixClaw::UpdateSingleLED(int /*led*/)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
void RGBController_StrixClaw::DeviceUpdateMode()
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_AsusStrixClaw.h |
|
||||
| |
|
||||
| Generic RGB Interface for Asus |
|
||||
| Legacy USB controller driver |
|
||||
| |
|
||||
| Mola19 08/06/2022 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_AsusStrixClaw.h |
|
||||
| |
|
||||
| RGBController for ASUS Strix Claw mouse |
|
||||
| |
|
||||
| Mola19 06 Aug 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue