I've lost some time trying to get joystick support for my an application using SDL, mostly because the initialization steps where these:
SDL_Init(SDL_INIT_JOYSTICK|SDL_INIT_VIDEO);
SDL_JoystickEventState(SDL_ENABLE);
It didn't work if I just initialized the joystick, it needed to be done together with the video. I want this to be very minimalistic, so it would be nice to know if there's a way to initialize just the joystick. If not, can someone tell me if there's any disadvantage of initializing the video and never using it?
I'm on Ubuntu here, but I expect this to run in various platforms. Does this behavior vary in different environments?
Thanks :)