dinput: Consistently use GetCurrentTime().

This commit is contained in:
Austin English 2013-12-10 16:45:28 -08:00 committed by Alexandre Julliard
parent 710e3bc5ec
commit bfafb1ffc5
3 changed files with 3 additions and 4 deletions

View File

@ -689,8 +689,7 @@ static void joy_polldev(LPDIRECTINPUTDEVICE8A iface)
}
}
if (inst_id >= 0)
queue_event(iface, inst_id,
value, jse.time, This->generic.base.dinput->evsequence++);
queue_event(iface, inst_id, value, GetCurrentTime(), This->generic.base.dinput->evsequence++);
}
}

View File

@ -873,7 +873,7 @@ static void joy_polldev(LPDIRECTINPUTDEVICE8A iface)
}
if (inst_id >= 0)
queue_event(iface, inst_id,
value, ie.time.tv_usec, This->generic.base.dinput->evsequence++);
value, GetCurrentTime(), This->generic.base.dinput->evsequence++);
}
}

View File

@ -126,7 +126,7 @@ static int KeyboardCallback( LPDIRECTINPUTDEVICE8A iface, WPARAM wparam, LPARAM
EnterCriticalSection(&This->base.crit);
queue_event(iface, DIDFT_MAKEINSTANCE(dik_code) | DIDFT_PSHBUTTON,
new_diks, hook->time, This->base.dinput->evsequence++);
new_diks, GetCurrentTime(), This->base.dinput->evsequence++);
LeaveCriticalSection(&This->base.crit);
return ret;