Formatting and organizational cleanup for controllers beginning with A

This commit is contained in:
Adam Honse 2024-04-30 23:37:19 -05:00
parent 89645dff38
commit b6d5c64c5b
78 changed files with 356 additions and 379 deletions

View file

@ -7,15 +7,14 @@
| Mola19 05/28/2022 |
\*-----------------------------------------*/
#include "AsusCerberusKeyboardController.h"
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <string>
#include <string.h>
#include <cmath>
#include <vector>
#include "AsusCerberusKeyboardController.h"
#define ASUS_CERBERUS_KB_PACKET_SIZE 8

View file

@ -7,13 +7,12 @@
| Mola19 03/03/2021 |
\*-----------------------------------------*/
#include "RGBController.h"
#pragma once
#include <string>
#include <vector>
#include <hidapi/hidapi.h>
#pragma once
#include "RGBController.h"
enum
{

View file

@ -7,10 +7,10 @@
| Mola19 05/28/2022 |
\*-----------------------------------------*/
#include "RGBController_AsusCerberusKeyboard.h"
#include <vector>
#include <cmath>
#include <vector>
#include "RGBControllerKeyNames.h"
#include "RGBController_AsusCerberusKeyboard.h"
/**------------------------------------------------------------------*\
@name Asus Cerberus Mech Keyboard

View file

@ -8,6 +8,7 @@
\*-----------------------------------------*/
#pragma once
#include "RGBController.h"
#include "AsusCerberusKeyboardController.h"

View file

@ -1,3 +1,5 @@
#include <stdexcept>
#include <hidapi/hidapi.h>
#include "Detector.h"
#include "AsusCerberusKeyboardController.h"
#include "AsusSagarisKeyboardController.h"
@ -6,8 +8,6 @@
#include "RGBController_AsusCerberusKeyboard.h"
#include "RGBController_AsusSagarisKeyboard.h"
#include "RGBController_AsusStrixClaw.h"
#include <stdexcept>
#include <hidapi/hidapi.h>
#include "dependencies/dmiinfo.h"
#define ASUS_LEGACY_USB_VID 0x195D
@ -59,4 +59,4 @@ 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 ROG Strix Claw", DetectAsusStrixClaw, ASUS_LEGACY_USB_VID, ASUS_ROG_STRIX_CLAW_PID, 0, 0xFF01, 1);

View file

@ -1,20 +1,18 @@
/*-----------------------------------------*\
| AsusSagarisKeyboardController.cpp |
| AsusSagarisKeyboardController.cpp |
| |
| Driver for ASUS Sagaris USB lighting |
| Driver for ASUS Sagaris USB lighting |
| controller |
| |
| Mola19 08/20/2023 |
\*-----------------------------------------*/
#include "AsusSagarisKeyboardController.h"
#include <cstring>
#include <string>
#include <math.h>
#include <vector>
#include <string>
#include <string.h>
#include <vector>
#include "AsusSagarisKeyboardController.h"
#include "LogManager.h"
#define ASUS_SAGARIS_KB_PACKET_SIZE 65
@ -194,4 +192,4 @@ void AsusSagarisKeyboardController::ClearResponses()
{
result = hid_read_timeout(dev, usb_buf_flush, 65, 0);
}
}
}

View file

@ -1,19 +1,18 @@
/*-----------------------------------------*\
| AsusSagarisKeyboardController.h |
| AsusSagarisKeyboardController.h |
| |
| Definitions and types for ASUS Sagaris |
| Definitions and types for ASUS Sagaris |
| USB RGB lighting controller |
| |
| Mola19 08/20/2023 |
\*-----------------------------------------*/
#include "RGBController.h"
#pragma once
#include <string>
#include <vector>
#include <hidapi/hidapi.h>
#pragma once
#include "RGBController.h"
enum
{

View file

@ -7,8 +7,9 @@
| Mola19 08/20/2023 |
\*-----------------------------------------*/
#include "RGBController_AsusSagarisKeyboard.h"
#include <iostream>
#include <vector>
#include "RGBController_AsusSagarisKeyboard.h"
/**------------------------------------------------------------------*\
@name Asus Sagaris Keyboard
@ -21,8 +22,6 @@
@comment Missing controls for modifier keys, as they have independent lighting
\*-------------------------------------------------------------------*/
#include <iostream>
RGBController_AsusSagarisKeyboard::RGBController_AsusSagarisKeyboard(AsusSagarisKeyboardController* controller_ptr)
{
controller = controller_ptr;

View file

@ -1,13 +1,14 @@
/*-----------------------------------------*\
| RGBController_AsusSagarisKeyboard.h |
| RGBController_AsusSagarisKeyboard.h |
| |
| Generic RGB Interface for Asus Sagaris |
| Generic RGB Interface for Asus Sagaris |
| USB controller driver |
| |
| Mola19 08/20/2023 |
\*-----------------------------------------*/
#pragma once
#include "RGBController.h"
#include "AsusSagarisKeyboardController.h"

View file

@ -7,10 +7,9 @@
| Mola19 08/06/2022 |
\*-----------------------------------------*/
#include "AsusStrixClawController.h"
#include <cstring>
#include <string>
#include "AsusStrixClawController.h"
StrixClawController::StrixClawController(hid_device* dev_handle, const char* path)
{

View file

@ -7,12 +7,11 @@
| Mola19 08/06/2022 |
\*-----------------------------------------*/
#include "RGBController.h"
#pragma once
#include <string>
#include <hidapi/hidapi.h>
#pragma once
#include "RGBController.h"
#define HID_MAX_STR 255

View file

@ -8,10 +8,10 @@
\*-----------------------------------------*/
#pragma once
#include "RGBController.h"
#include "AsusStrixClawController.h"
class RGBController_StrixClaw : public RGBController
{
public: