mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-28 09:47:50 -05:00
53 lines
1.6 KiB
C++
53 lines
1.6 KiB
C++
/*-----------------------------------------*\
|
|
| LogitechG403Controller.h |
|
|
| |
|
|
| Definitions and types for Logitech G403 |
|
|
| Prodigy mouse lighting controller |
|
|
| |
|
|
| Martin Hartl (inlart) 5/19/2020 |
|
|
\*-----------------------------------------*/
|
|
|
|
#include "RGBController.h"
|
|
|
|
#include <string>
|
|
#include <hidapi/hidapi.h>
|
|
|
|
#pragma once
|
|
|
|
enum
|
|
{
|
|
LOGITECH_G403_MODE_OFF = 0x00,
|
|
LOGITECH_G403_MODE_STATIC = 0x01,
|
|
LOGITECH_G403_MODE_CYCLE = 0x02,
|
|
LOGITECH_G403_MODE_BREATHING = 0x03,
|
|
};
|
|
|
|
enum
|
|
{
|
|
LOGITECH_G403_SPEED_SLOWEST = 0x00, /* Slowest speed */
|
|
LOGITECH_G403_SPEED_SLOW = 0x01, /* Slow speed */
|
|
LOGITECH_G403_SPEED_NORMAL = 0x02, /* Normal speed */
|
|
LOGITECH_G403_SPEED_FAST = 0x03, /* Fast speed */
|
|
LOGITECH_G403_SPEED_FASTEST = 0x04, /* Fastest speed */
|
|
};
|
|
|
|
class LogitechG403Controller
|
|
{
|
|
public:
|
|
LogitechG403Controller(hid_device* dev_handle);
|
|
~LogitechG403Controller();
|
|
|
|
void SendMouseMode
|
|
(
|
|
unsigned char mode,
|
|
unsigned short speed,
|
|
unsigned char channel,
|
|
unsigned char red,
|
|
unsigned char green,
|
|
unsigned char blue
|
|
);
|
|
|
|
private:
|
|
hid_device* dev;
|
|
};
|