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
+71
-71
@@ -1,71 +1,71 @@
|
||||
/*---------------------------------------------------------*\
|
||||
| SteelSeriesOldApexController.h |
|
||||
| |
|
||||
| Driver for older SteelSeries Apex keyboards |
|
||||
| (Apex/Apex Fnatic/Apex 350) |
|
||||
| |
|
||||
| Based on findings in ApexCtl by Audrius/tuxmark5, et. |
|
||||
| al, https://github.com/tuxmark5/ApexCtl |
|
||||
| |
|
||||
| David Lee (RAMChYLD) 15 Nov 2020 |
|
||||
| Based on work by B Horn (bahorn) 13 May 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-or-later |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <hidapi.h>
|
||||
#include "color32.h"
|
||||
#include "SteelSeriesGeneric.h"
|
||||
|
||||
/* Mode, we then use these to set actual effect based on speed. */
|
||||
enum
|
||||
{
|
||||
STEELSERIES_OLDAPEX_DIRECT = 0x08,
|
||||
};
|
||||
|
||||
/* Effects */
|
||||
enum
|
||||
{
|
||||
STEELSERIES_OLDAPEX_EFFECT_DIRECT = 0x08,
|
||||
};
|
||||
|
||||
class SteelSeriesOldApexController
|
||||
{
|
||||
public:
|
||||
SteelSeriesOldApexController
|
||||
(
|
||||
hid_device* dev_handle,
|
||||
steelseries_type proto_type,
|
||||
const char* path,
|
||||
std::string dev_name
|
||||
);
|
||||
|
||||
~SteelSeriesOldApexController();
|
||||
|
||||
std::string GetDeviceLocation();
|
||||
std::string GetDeviceName();
|
||||
std::string GetSerialString();
|
||||
|
||||
steelseries_type GetKeyboardType();
|
||||
|
||||
void SetColorDetailed
|
||||
(
|
||||
color32 qwerty,
|
||||
color32 tenkey,
|
||||
color32 functionkey,
|
||||
color32 mxkey,
|
||||
color32 logo
|
||||
);
|
||||
|
||||
void DoUpdateLEDs();
|
||||
|
||||
private:
|
||||
hid_device* dev;
|
||||
std::string location;
|
||||
std::string name;
|
||||
steelseries_type proto;
|
||||
};
|
||||
/*---------------------------------------------------------*\
|
||||
| SteelSeriesOldApexController.h |
|
||||
| |
|
||||
| Driver for older SteelSeries Apex keyboards |
|
||||
| (Apex/Apex Fnatic/Apex 350) |
|
||||
| |
|
||||
| Based on findings in ApexCtl by Audrius/tuxmark5, et. |
|
||||
| al, https://github.com/tuxmark5/ApexCtl |
|
||||
| |
|
||||
| David Lee (RAMChYLD) 15 Nov 2020 |
|
||||
| Based on work by B Horn (bahorn) 13 May 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-or-later |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <hidapi.h>
|
||||
#include "color32.h"
|
||||
#include "SteelSeriesGeneric.h"
|
||||
|
||||
/* Mode, we then use these to set actual effect based on speed. */
|
||||
enum
|
||||
{
|
||||
STEELSERIES_OLDAPEX_DIRECT = 0x08,
|
||||
};
|
||||
|
||||
/* Effects */
|
||||
enum
|
||||
{
|
||||
STEELSERIES_OLDAPEX_EFFECT_DIRECT = 0x08,
|
||||
};
|
||||
|
||||
class SteelSeriesOldApexController
|
||||
{
|
||||
public:
|
||||
SteelSeriesOldApexController
|
||||
(
|
||||
hid_device* dev_handle,
|
||||
steelseries_type proto_type,
|
||||
const char* path,
|
||||
std::string dev_name
|
||||
);
|
||||
|
||||
~SteelSeriesOldApexController();
|
||||
|
||||
std::string GetDeviceLocation();
|
||||
std::string GetDeviceName();
|
||||
std::string GetSerialString();
|
||||
|
||||
steelseries_type GetKeyboardType();
|
||||
|
||||
void SetColorDetailed
|
||||
(
|
||||
color32 qwerty,
|
||||
color32 tenkey,
|
||||
color32 functionkey,
|
||||
color32 mxkey,
|
||||
color32 logo
|
||||
);
|
||||
|
||||
void DoUpdateLEDs();
|
||||
|
||||
private:
|
||||
hid_device* dev;
|
||||
std::string location;
|
||||
std::string name;
|
||||
steelseries_type proto;
|
||||
};
|
||||
Reference in new issue
Block a user