mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-21 08:05:03 -04:00
Fill in serial field for all HID controllers using hidapi
This commit is contained in:
1 parent
92dc8411d6
commit
d19baf1365
101 files changed
+446
-2
No files matched your search
@@ -39,6 +39,17 @@ unsigned int SinowealthController::GetLEDCount()
|
||||
return(led_count);
|
||||
}
|
||||
|
||||
std::string SinowealthController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
hid_get_serial_number_string(dev_report_id_4, serial_string, 128);
|
||||
|
||||
std::wstring return_wstring = serial_string;
|
||||
std::string return_string(return_wstring.begin(), return_wstring.end());
|
||||
|
||||
return(return_string);
|
||||
}
|
||||
|
||||
void SinowealthController::SetLEDColor
|
||||
(
|
||||
RGBColor* color_buf
|
||||
|
||||
Reference in new issue
Block a user