Use nanosecond timestamp for sensors (thanks @1bsyl!)

This commit is contained in:
Sam Lantinga
2023-01-23 05:33:56 -08:00
parent 34bb0735d8
commit b6646f4de5
3 changed files with 3 additions and 3 deletions

View File

@@ -143,7 +143,7 @@ static HRESULT STDMETHODCALLTYPE ISensorEventsVtbl_OnStateChanged(ISensorEvents
static HRESULT STDMETHODCALLTYPE ISensorEventsVtbl_OnDataUpdated(ISensorEvents *This, ISensor *pSensor, ISensorDataReport *pNewData)
{
int i;
Uint64 timestamp = SDL_GetTicks();
Uint64 timestamp = SDL_GetTicksNS();
SDL_LockSensors();
for (i = 0; i < SDL_num_sensors; ++i) {