You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// the 'highest usage' method used below is not applicable here
40
+
for (structhid_device_info* current = devices; current != nullptr && current->vendor_id == HEADSET_VENDOR_ID_HP && current->product_id == HEADSET_PRODUCT_ID_HP_CLOUD_III_S; current = current->next)
41
+
{
42
+
//looks like the correct condition is usage_page 448 and usage 1 combination
43
+
if (current->usage_page == 448 && current->usage == 1)
44
+
{
45
+
foundPath = current->path; // Copy the path
46
+
hid_free_enumeration(devices); // FREE THE MEMORY
47
+
return foundPath; // Return early
48
+
}
49
+
}
50
+
51
+
// Special case for HyperX Cloud III Wireless
52
+
// the 'highest usage' method used below is not applicable here either
53
+
for (structhid_device_info* current = devices; current != nullptr && current->vendor_id == HEADSET_VENDOR_ID_HP && (current->product_id == HEADSET_PRODUCT_ID_HP_CLOUD_III_REV4106 || current->product_id == HEADSET_PRODUCT_ID_HP_CLOUD_III_REV4109); current = current->next)
54
+
{
55
+
// From log: the correct interface is usage_page 65299 and usage 1
56
+
if (current->usage_page == 65299 && current->usage == 1)
57
+
{
58
+
foundPath = current->path; // Copy the path
59
+
hid_free_enumeration(devices); // FREE THE MEMORY
60
+
return foundPath; // Return early
61
+
}
62
+
}
35
63
36
64
int highest_usage = 0; //I think the highest usage device is the one that answers with battery level
37
65
int highest_usage_page = 0; //If all devices have the same usage, use the one with the highest usage page
38
-
for (structhid_device_info* current = devices; current != nullptr; current = current->next)
66
+
67
+
for (structhid_device_info* current = devices; current != nullptr; current = current->next)
39
68
{
40
69
if (current->usage > highest_usage)
41
70
{
42
71
highest_usage = current->usage;
43
72
highest_usage_page = current->usage_page;
44
-
deviceInfo = current;
73
+
foundPath = current->path; // Keep track of the path
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,10 @@ The aim of the project is simple, to create a somewhat customizable battery moni
15
15
16
16
**HP HyperX Cloud Stinger 2 Wireless**
17
17
18
+
**HP HyperX Cloud III Wireless**
19
+
20
+
**HP HyperX Cloud III S Wireless**
21
+
18
22
If you would like a different Cloud Wireless headset supported, feel free to create an issue here on Github but beware that I will ask you for assistance (eg. Wireshark USB traffic recordings).
19
23
20
24
## Requirements
@@ -23,7 +27,7 @@ If you would like a different Cloud Wireless headset supported, feel free to cre
23
27
24
28
## How to install
25
29
26
-
You can download [release v1.8 here](https://github.com/auto94/HyperX-Cloud-2-Battery-Monitor/releases/download/Release_v1.8/Cloud2BatteryMonitor_v1.8.zip) or select the latest release on the right side of this Github repository and download the zip. After the download is complete, extract the zip and run "Cloud2BatteryMonitorUI.exe".
30
+
You can download [release v2.1 here](https://github.com/elazarit/HyperX-Cloud-2-Battery-Monitor/releases/download/v2.1/HyperX-Cloud-2-Battery-Monitor-2.1.zip) or select the latest release on the right side of this Github repository and download the zip. After the download is complete, extract the zip and run "Cloud2BatteryMonitorUI.exe".
27
31
28
32
No installation is necessary.
29
33
@@ -89,6 +93,8 @@ A: Basically I used wireshark to find the data and responses which had the batte
89
93
| HP | HyperX Cloud II Core Wireless | v1.4+ | Windows 10
0 commit comments