Update Instant mouse controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-05-25 09:10:47 -05:00
parent 1f3bcaf52a
commit 84077e9dc2
5 changed files with 59 additions and 38 deletions

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
| InstantMouseController.cpp |
| |
| Driver for Instant mouse lighting |
| controller |
| |
| Guimard Morgan (morg) 1/19/2024 |
\*-----------------------------------------*/
#include "InstantMouseController.h"
/*---------------------------------------------------------*\
| InstantMouseController.cpp |
| |
| Driver for Instant mouse |
| |
| Morgan Guimard (morg) 19 Jan 2024 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <string.h>
#include "InstantMouseController.h"
InstantMouseController::InstantMouseController(hid_device* dev_handle, const hid_device_info& info)
{
@ -50,7 +53,7 @@ std::string InstantMouseController::GetFirmwareVersion()
}
void InstantMouseController::SendColor(RGBColor color)
{
{
/*---------------------------------------------------------*\
| Packet details |
| 07 14 XG RB 00 00 00 00 |
@ -76,7 +79,7 @@ void InstantMouseController::SendColor(RGBColor color)
}
void InstantMouseController::SetMode(uint8_t mode_value, uint8_t speed, uint8_t brightness, uint8_t direction)
{
{
/*---------------------------------------------------------*\
| Packet details: |
| 07 13 FF MS DN -B -- -- |
@ -100,7 +103,7 @@ void InstantMouseController::SetMode(uint8_t mode_value, uint8_t speed, uint8_t
pkt[1] = INSTANT_MOUSE_SET_MODE;
pkt[2] = 0xFF;
pkt[3] = (mode_value << 4) | (speed & 0xF);
pkt[3] = (mode_value << 4) | (speed & 0xF);
pkt[4] = (direction << 4) | led_mask;
pkt[5] = 0xF - (brightness & 0xF);

View file

@ -1,16 +1,19 @@
/*-----------------------------------------*\
| InstantMouseController.h |
| |
| Driver for Instant mouse lighting |
| controller - header file |
| |
| Guimard Morgan (morg) 1/19/2024 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| InstantMouseController.h |
| |
| Driver for Instant mouse |
| |
| Morgan Guimard (morg) 19 Jan 2024 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include <string>
#include <hidapi/hidapi.h>
#include "RGBController.h"
#define INSTANT_MOUSE_REPORT_ID 0x07
#define INSTANT_MOUSE_REPORT_SIZE 8

View file

@ -1,3 +1,14 @@
/*---------------------------------------------------------*\
| InstantMouseControllerDetect.cpp |
| |
| Detector for Instant mouse |
| |
| Morgan Guimard (morg) 19 Jan 2024 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "Detector.h"
#include "InstantMouseController.h"
#include "RGBController.h"

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_InstantMouse.cpp |
| |
| Generic RGB Interface for OpenRGB |
| Instant mouse RGB USB Driver |
| |
| Guimard Morgan (morg) 1/19/2024 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_InstantMouse.cpp |
| |
| RGBController for Instant mouse |
| |
| Morgan Guimard (morg) 19 Jan 2024 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_InstantMouse.h"
@ -24,7 +26,7 @@
RGBController_InstantMouse::RGBController_InstantMouse(InstantMouseController* controller_ptr)
{
controller = controller_ptr;
controller = controller_ptr;
vendor = "Instant Microelectronics";
type = DEVICE_TYPE_MOUSE;
description = "Instant USB Gaming Mouse";

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_InstantMouse.h |
| |
| Generic RGB Interface for OpenRGB |
| Instant mouse RGB USB Driver |
| |
| Guimard Morgan (morg) 1/19/2024 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_InstantMouse.h |
| |
| RGBController for Instant mouse |
| |
| Morgan Guimard (morg) 19 Jan 2024 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once