dinput: Consistently use GetCurrentTime().
This commit is contained in:
parent
710e3bc5ec
commit
bfafb1ffc5
|
@ -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++);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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++);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue