Publish curated LumaOps source from c85ee9ef8f1454f5c305398902afbb9e6738de40
Managed validation / full (push) Failing after 8s
Managed validation / full (push) Failing after 8s
This commit is contained in:
1 parent
91f8b3e3c1
commit
def7920856
2271 files changed
+501225
-501178
No files matched your search
+62
-62
@@ -1,62 +1,62 @@
|
||||
/*---------------------------------------------------------*\
|
||||
| AsusAuraMousematController.h |
|
||||
| |
|
||||
| Driver for ASUS Aura mousemat |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 10 Jan 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-or-later |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <hidapi.h>
|
||||
#include "RGBController.h"
|
||||
|
||||
enum
|
||||
{
|
||||
AURA_MOUSEMAT_MODE_STATIC = 0,
|
||||
AURA_MOUSEMAT_MODE_BREATHING = 1,
|
||||
AURA_MOUSEMAT_MODE_COLOR_CYCLE = 2,
|
||||
AURA_MOUSEMAT_MODE_WAVE = 3,
|
||||
AURA_MOUSEMAT_MODE_WAVE_PLANE = 4,
|
||||
AURA_MOUSEMAT_MODE_COMET = 5,
|
||||
AURA_MOUSEMAT_MODE_GLOWING_YOYO = 6,
|
||||
AURA_MOUSEMAT_MODE_CROSS = 7,
|
||||
AURA_MOUSEMAT_MODE_STARRY_NIGHT = 8,
|
||||
AURA_MOUSEMAT_MODE_DIRECT = 0xFF,
|
||||
};
|
||||
|
||||
class AuraMousematController
|
||||
{
|
||||
public:
|
||||
AuraMousematController(hid_device* dev_handle, const char* path, std::string dev_name);
|
||||
virtual ~AuraMousematController();
|
||||
|
||||
std::string GetDeviceLocation();
|
||||
std::string GetName();
|
||||
std::string GetSerialString();
|
||||
std::string GetVersion();
|
||||
|
||||
void UpdateLeds
|
||||
(
|
||||
std::vector<RGBColor> colors
|
||||
);
|
||||
|
||||
void UpdateDevice
|
||||
(
|
||||
unsigned char mode,
|
||||
std::vector<RGBColor> colors,
|
||||
unsigned char speed,
|
||||
unsigned char brightness,
|
||||
unsigned char pattern
|
||||
);
|
||||
|
||||
void SaveMode();
|
||||
|
||||
private:
|
||||
hid_device* dev;
|
||||
std::string location;
|
||||
std::string name;
|
||||
};
|
||||
/*---------------------------------------------------------*\
|
||||
| AsusAuraMousematController.h |
|
||||
| |
|
||||
| Driver for ASUS Aura mousemat |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 10 Jan 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-or-later |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <hidapi.h>
|
||||
#include "RGBController.h"
|
||||
|
||||
enum
|
||||
{
|
||||
AURA_MOUSEMAT_MODE_STATIC = 0,
|
||||
AURA_MOUSEMAT_MODE_BREATHING = 1,
|
||||
AURA_MOUSEMAT_MODE_COLOR_CYCLE = 2,
|
||||
AURA_MOUSEMAT_MODE_WAVE = 3,
|
||||
AURA_MOUSEMAT_MODE_WAVE_PLANE = 4,
|
||||
AURA_MOUSEMAT_MODE_COMET = 5,
|
||||
AURA_MOUSEMAT_MODE_GLOWING_YOYO = 6,
|
||||
AURA_MOUSEMAT_MODE_CROSS = 7,
|
||||
AURA_MOUSEMAT_MODE_STARRY_NIGHT = 8,
|
||||
AURA_MOUSEMAT_MODE_DIRECT = 0xFF,
|
||||
};
|
||||
|
||||
class AuraMousematController
|
||||
{
|
||||
public:
|
||||
AuraMousematController(hid_device* dev_handle, const char* path, std::string dev_name);
|
||||
virtual ~AuraMousematController();
|
||||
|
||||
std::string GetDeviceLocation();
|
||||
std::string GetName();
|
||||
std::string GetSerialString();
|
||||
std::string GetVersion();
|
||||
|
||||
void UpdateLeds
|
||||
(
|
||||
std::vector<RGBColor> colors
|
||||
);
|
||||
|
||||
void UpdateDevice
|
||||
(
|
||||
unsigned char mode,
|
||||
std::vector<RGBColor> colors,
|
||||
unsigned char speed,
|
||||
unsigned char brightness,
|
||||
unsigned char pattern
|
||||
);
|
||||
|
||||
void SaveMode();
|
||||
|
||||
private:
|
||||
hid_device* dev;
|
||||
std::string location;
|
||||
std::string name;
|
||||
};
|
||||
Reference in new issue
Block a user