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

@@ -156,7 +156,7 @@ static void SDL_ANDROID_SensorUpdate(SDL_Sensor *sensor)
int events;
ASensorEvent event;
struct android_poll_source *source;
Uint64 timestamp = SDL_GetTicks();
Uint64 timestamp = SDL_GetTicksNS();
if (ALooper_pollAll(0, NULL, &events, (void **)&source) == LOOPER_ID_USER) {
SDL_zero(event);