I'm on Windows and am trying to store calibration data for game controllers connected via USB and am trying to find a value which uniquely identifies them in a port independent way.
There is the HidD_GetSerialNumberString
function but i've read here that it's uncommon for devices to have serial numbers and indeed when i try to read one f.e. from a PS4 controller HidD_GetSerialNumberString
returns FALSE
and GetLastError
returns ERROR_INVALID_PARAMETER
.
Is there any other data available which can be accessed to achieve this?