Always use SDL_PrivateJoystickBatteryLevel to update battery level

But do not use it for initialisation.
This commit is contained in:
meyraud705 2022-02-02 11:21:32 +01:00 committed by Sam Lantinga
parent fa29e2d7f7
commit 0964c84d77
5 changed files with 19 additions and 19 deletions
src/joystick/windows

View file

@ -1253,7 +1253,7 @@ RAWINPUT_JoystickOpen(SDL_Joystick *joystick, int device_index)
}
}
SDL_PrivateJoystickBatteryLevel(joystick, SDL_JOYSTICK_POWER_UNKNOWN);
joystick->ePowerLevel = SDL_JOYSTICK_POWER_UNKNOWN;
return 0;
}