user32: Always refresh rawinput device list when requested.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d3ba02f35c
commit
c2c78a2fe0
|
@ -166,8 +166,6 @@ static struct device *add_device(HDEVINFO set, SP_DEVICE_INTERFACE_DATA *iface)
|
|||
|
||||
static void find_devices(void)
|
||||
{
|
||||
static ULONGLONG last_check;
|
||||
|
||||
SP_DEVICE_INTERFACE_DATA iface = { sizeof(iface) };
|
||||
struct device *device;
|
||||
HIDD_ATTRIBUTES attr;
|
||||
|
@ -176,10 +174,6 @@ static void find_devices(void)
|
|||
HDEVINFO set;
|
||||
DWORD idx;
|
||||
|
||||
if (GetTickCount64() - last_check < 2000)
|
||||
return;
|
||||
last_check = GetTickCount64();
|
||||
|
||||
HidD_GetHidGuid(&hid_guid);
|
||||
|
||||
EnterCriticalSection(&rawinput_devices_cs);
|
||||
|
|
Loading…
Reference in New Issue