mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-19 23:32:59 -04:00
Changing _WIN32 definition to the more universal USE_HID_USAGE to correct detection for libhidapi > v10
This commit is contained in:
1 parent
c96d1c24b0
commit
06d2a6ce4d
1 file changed
+2
-12
@@ -13,16 +13,6 @@
|
||||
#define Everest_GT100_PID 0x0029
|
||||
#define Fl_Esports_F11_PID 0x0049
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
unsigned short usb_vid;
|
||||
unsigned short usb_pid;
|
||||
const char * name;
|
||||
} sinowealth_device;
|
||||
|
||||
#define SINOWEALTH_NUM_DEVICES (sizeof(device_list) / sizeof(device_list[ 0 ]))
|
||||
|
||||
/******************************************************************************************\
|
||||
* *
|
||||
* DetectSinowealthControllers *
|
||||
@@ -63,7 +53,7 @@ int GetUsageCount(hid_device_info* info, hid_device* usages[])
|
||||
|
||||
void DetectSinowealthMouse(hid_device_info* info, const std::string& name)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
#ifdef USE_HID_USAGE
|
||||
|
||||
/*-------------------------------------------------------------------------------------------------*\
|
||||
| Sinowealth devices use 3 different Report IDs on the same Usage Page. |
|
||||
@@ -105,7 +95,7 @@ void DetectSinowealthMouse(hid_device_info* info, const std::string& name)
|
||||
|
||||
void DetectSinowealthKeyboard(hid_device_info* info, const std::string& name)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
#ifdef USE_HID_USAGE
|
||||
hid_device* usages[3];
|
||||
|
||||
unsigned int usage_count = GetUsageCount(info, usages);
|
||||
|
||||
Reference in new issue
Block a user