diff --git a/src/client/input/sdl3.c b/src/client/input/sdl3.c index e06918dd..96a85a02 100644 --- a/src/client/input/sdl3.c +++ b/src/client/input/sdl3.c @@ -887,11 +887,11 @@ IN_Update(void) { break; } - if (event.jbattery.level == SDL_JOYSTICK_POWER_LOW) + if (event.jbattery.percent <= 20) { Com_Printf("WARNING: Gamepad battery Low, it is recommended to connect it by cable.\n"); } - else if (event.jbattery.level == SDL_JOYSTICK_POWER_EMPTY) + else if (event.jbattery.percent <= 1) { SCR_CenterPrint("ALERT: Gamepad battery almost Empty.\n"); } diff --git a/src/client/vid/glimp_sdl3.c b/src/client/vid/glimp_sdl3.c index 3ab93389..218a756b 100644 --- a/src/client/vid/glimp_sdl3.c +++ b/src/client/vid/glimp_sdl3.c @@ -779,7 +779,7 @@ GLimp_GrabInput(qboolean grab) { if(window != NULL) { - SDL_SetWindowGrab(window, grab ? SDL_TRUE : SDL_FALSE); + SDL_SetWindowMouseGrab(window, grab ? SDL_TRUE : SDL_FALSE); } if(SDL_SetRelativeMouseMode(grab ? SDL_TRUE : SDL_FALSE) < 0)