initialize sdl haptic, log haptic device open errors

This commit is contained in:
Katharine Chui 2025-05-08 11:48:27 +02:00 committed by Megamouse
parent 2963d10325
commit f0672bdbc9
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ bool sdl_instance::initialize()
set_hint(SDL_HINT_JOYSTICK_HIDAPI_PS3, "1");
#endif
if (!SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_GAMEPAD))
if (!SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_GAMEPAD | SDL_INIT_HAPTIC))
{
sdl_log.error("Could not initialize! SDL Error: %s", SDL_GetError());
return false;