mirror of
https://github.com/encounter/SDL.git
synced 2025-12-13 07:06:10 +00:00
Always use SDL_PrivateJoystickBatteryLevel to update battery level
But do not use it for initialisation.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user