xinput: Use DIGCF_PRESENT.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Aric Stewart <aric@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4526c5923c
commit
8343099ff5
|
@ -241,7 +241,7 @@ void HID_find_gamepads(xinput_controller *devices)
|
|||
|
||||
EnterCriticalSection(&hid_xinput_crit);
|
||||
|
||||
device_info_set = SetupDiGetClassDevsW(&hid_guid, NULL, NULL, DIGCF_DEVICEINTERFACE);
|
||||
device_info_set = SetupDiGetClassDevsW(&hid_guid, NULL, NULL, DIGCF_DEVICEINTERFACE | DIGCF_PRESENT);
|
||||
|
||||
data = HeapAlloc(GetProcessHeap(), 0 , sizeof(*data) + detail_size);
|
||||
data->cbSize = sizeof(*data);
|
||||
|
|
Loading…
Reference in New Issue