Always use SDL_PrivateJoystickBatteryLevel to update battery level
But do not use it for initialisation.
This commit is contained in:
parent
fa29e2d7f7
commit
0964c84d77
5 changed files with 19 additions and 19 deletions
src/joystick/windows
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue