Don't try to update the gamepad fusion sensors manually, instead rely on the normal update flow

main
Sam Lantinga 2023-06-19 19:41:20 -07:00
parent 20ea35138f
commit 1a9c04e9f1
1 changed files with 0 additions and 10 deletions

View File

@ -1893,16 +1893,6 @@ void SDL_UpdateJoysticks(void)
for (joystick = SDL_joysticks; joystick; joystick = joystick->next) {
if (joystick->attached) {
if (joystick->accel || joystick->gyro) {
SDL_LockSensors();
if (joystick->gyro) {
SDL_UpdateSensor(joystick->gyro);
}
if (joystick->accel) {
SDL_UpdateSensor(joystick->accel);
}
SDL_UnlockSensors();
}
joystick->driver->Update(joystick);
if (joystick->delayed_guide_button) {