From 1a9c04e9f1a276f85e08dcb0c0dc0908dc0cfb1a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 19 Jun 2023 19:41:20 -0700 Subject: [PATCH] Don't try to update the gamepad fusion sensors manually, instead rely on the normal update flow --- src/joystick/SDL_joystick.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c index bfc3e81615..b18f0e5b5d 100644 --- a/src/joystick/SDL_joystick.c +++ b/src/joystick/SDL_joystick.c @@ -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) {