mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-26 13:08:29 +00:00
Don't try to update the gamepad fusion sensors manually, instead rely on the normal update flow
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user