mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-13 17:14:39 -04:00
Update Redragon controller files to new standardized header comment
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
/*-----------------------------------------*\
|
||||
| RGBController_RedragonMouse.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for Redragon Mouse |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 3/25/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_RedragonMouse.cpp |
|
||||
| |
|
||||
| RGBController for Redragon mouse |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 25 Mar 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController_RedragonMouse.h"
|
||||
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
/*-----------------------------------------*\
|
||||
| RGBController_RedragonMouse.h |
|
||||
| |
|
||||
| Generic RGB Interface for Redragon Mouse |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 3/25/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_RedragonMouse.h |
|
||||
| |
|
||||
| RGBController for Redragon mouse |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 25 Mar 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RGBController.h"
|
||||
@@ -18,7 +22,7 @@ public:
|
||||
|
||||
void SetupZones();
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
@@ -1,9 +1,20 @@
|
||||
/*---------------------------------------------------------*\
|
||||
| RedragonControllerDetect.cpp |
|
||||
| |
|
||||
| Detector for Redragon devices |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 15 Mar 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <vector>
|
||||
#include <hidapi/hidapi.h>
|
||||
#include "Detector.h"
|
||||
#include "RedragonMouseController.h"
|
||||
#include "RGBController.h"
|
||||
#include "RGBController_RedragonMouse.h"
|
||||
#include <vector>
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Mouse product IDs |
|
||||
@@ -47,4 +58,4 @@ REGISTER_HID_DETECTOR_IP("Redragon M716 Inquisitor", DetectRedragonMice, RE
|
||||
REGISTER_HID_DETECTOR_IP("Redragon M908 Impact", DetectRedragonMice, REDRAGON_MOUSE_VID, REDRAGON_M908_PID, 2, REDRAGON_MOUSE_USAGE_PAGE);
|
||||
REGISTER_HID_DETECTOR_IP("Redragon M602 Griffin", DetectRedragonMice, REDRAGON_MOUSE_VID, REDRAGON_M602_PID, 2, REDRAGON_MOUSE_USAGE_PAGE);
|
||||
REGISTER_HID_DETECTOR_IP("Redragon M808 Storm", DetectRedragonMice, REDRAGON_MOUSE_VID, REDRAGON_M808_PID, 2, REDRAGON_MOUSE_USAGE_PAGE);
|
||||
REGISTER_HID_DETECTOR_IP("Redragon M801 Sniper", DetectRedragonMice, REDRAGON_MOUSE_VID, REDRAGON_M801_PID, 2, REDRAGON_MOUSE_USAGE_PAGE);
|
||||
REGISTER_HID_DETECTOR_IP("Redragon M801 Sniper", DetectRedragonMice, REDRAGON_MOUSE_VID, REDRAGON_M801_PID, 2, REDRAGON_MOUSE_USAGE_PAGE);
|
||||
|
||||
@@ -1,6 +1,16 @@
|
||||
#include "RedragonMouseController.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| RedragonMouseController.cpp |
|
||||
| |
|
||||
| Driver for Redragon mouse |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 15 Mar 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include "RedragonMouseController.h"
|
||||
|
||||
RedragonMouseController::RedragonMouseController(hid_device* dev_handle, const char* path)
|
||||
{
|
||||
@@ -111,7 +121,7 @@ void RedragonMouseController::SendMouseApply()
|
||||
usb_buf[0x01] = 0xF1;
|
||||
usb_buf[0x02] = 0x02;
|
||||
usb_buf[0x03] = 0x04;
|
||||
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Send packet |
|
||||
\*-----------------------------------------------------*/
|
||||
@@ -145,7 +155,7 @@ void RedragonMouseController::SendWritePacket
|
||||
| Copy in data bytes |
|
||||
\*-----------------------------------------------------*/
|
||||
memcpy(&usb_buf[0x08], data, data_size);
|
||||
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Send packet |
|
||||
\*-----------------------------------------------------*/
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
/*-----------------------------------------*\
|
||||
| RedragonMouseController.h |
|
||||
| |
|
||||
| Definitions and types for Redragon Mouse |
|
||||
| lighting controller |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 3/15/2020 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RedragonMouseController.h |
|
||||
| |
|
||||
| Driver for Redragon mouse |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 15 Mar 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
Reference in New Issue
Block a user