N3DS: Fix PrivateSensorUpdate call.

A new timestamp parameter was added in 2c51874.
This commit is contained in:
Pierre Wendling 2022-10-09 23:49:00 -04:00 committed by Sam Lantinga
parent cb1972b3ba
commit 49c25b1daf
1 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ UpdateN3DSAccelerometer(SDL_Sensor *sensor)
data[0] = (float) current_state.x * SDL_STANDARD_GRAVITY;
data[1] = (float) current_state.y * SDL_STANDARD_GRAVITY;
data[2] = (float) current_state.z * SDL_STANDARD_GRAVITY;
SDL_PrivateSensorUpdate(sensor, data, sizeof data);
SDL_PrivateSensorUpdate(sensor, 0, data, sizeof data);
}
}
@ -182,7 +182,7 @@ UpdateN3DSGyroscope(SDL_Sensor *sensor)
data[0] = (float) current_state.x;
data[1] = (float) current_state.y;
data[2] = (float) current_state.z;
SDL_PrivateSensorUpdate(sensor, data, sizeof data);
SDL_PrivateSensorUpdate(sensor, 0, data, sizeof data);
}
}