mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
parent
1704eb5e2e
commit
a730905a2b
1 changed files with 1 additions and 1 deletions
|
|
@ -1976,7 +1976,7 @@ static void RAWINPUT_UpdateOtherAPIs(SDL_Joystick *joystick)
|
|||
state = SDL_POWERSTATE_ON_BATTERY;
|
||||
break;
|
||||
}
|
||||
if (state == SDL_POWERSTATE_ON_BATTERY || SDL_POWERSTATE_CHARGING) {
|
||||
if (state == SDL_POWERSTATE_ON_BATTERY || state == SDL_POWERSTATE_CHARGING) {
|
||||
switch (battery_info->BatteryLevel) {
|
||||
case BATTERY_LEVEL_EMPTY:
|
||||
percent = 10;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue