mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-23 15:56:00 +00:00
Use nanosecond timestamp for sensors (thanks @1bsyl!)
This commit is contained in:
@@ -137,7 +137,7 @@ static int SDL_COREMOTION_SensorOpen(SDL_Sensor *sensor, int device_index)
|
||||
|
||||
static void SDL_COREMOTION_SensorUpdate(SDL_Sensor *sensor)
|
||||
{
|
||||
Uint64 timestamp = SDL_GetTicks();
|
||||
Uint64 timestamp = SDL_GetTicksNS();
|
||||
|
||||
switch (sensor->type) {
|
||||
case SDL_SENSOR_ACCEL:
|
||||
|
||||
Reference in New Issue
Block a user