diff --git a/internal/gamepad/gamepad_desktop_windows.go b/internal/gamepad/gamepad_desktop_windows.go index 1726609f4..a140c17b1 100644 --- a/internal/gamepad/gamepad_desktop_windows.go +++ b/internal/gamepad/gamepad_desktop_windows.go @@ -315,6 +315,7 @@ func (g *nativeGamepadsDesktop) dinput8EnumDevicesCallback(lpddi *_DIDEVICEINSTA var prop _DIPROPGUIDANDPATH prop.diph.dwHeaderSize = uint32(unsafe.Sizeof(_DIPROPHEADER{})) prop.diph.dwSize = uint32(unsafe.Sizeof(_DIPROPGUIDANDPATH{})) + prop.diph.dwHow = _DIPH_DEVICE if err := device.GetProperty(_DIPROP_GUIDANDPATH, &prop.diph); err != nil { return "", err }