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

This commit is contained in:
Sam Lantinga committed 2023-01-23 05:34:24 -08:00
1 parent 34bb0735d8
commit b6646f4de5
3 files changed
+3 -3

No files matched your search

+1 -1
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) {