Skip to content

Commit

Permalink
Don't try to update the gamepad fusion sensors manually, instead rely…
Browse files Browse the repository at this point in the history
… on the normal update flow
  • Loading branch information
slouken committed Jun 20, 2023
1 parent 20ea351 commit 1a9c04e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/joystick/SDL_joystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1a9c04e

Please sign in to comment.