Add joystick initialization to next path, which adds compatibility for PS4 controllers (and many others, most likely)

This commit is contained in:
Lars A. Doucet
2015-06-16 13:43:10 -05:00
parent 16dcfcf5e5
commit 9f27bcac22

View File

@@ -19,7 +19,7 @@ namespace lime {
SDLApplication::SDLApplication () {
if (SDL_Init (SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER | SDL_INIT_TIMER) != 0) {
if (SDL_Init (SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER | SDL_INIT_TIMER | SDL_INIT_JOYSTICK) != 0) {
printf ("Could not initialize SDL: %s.\n", SDL_GetError ());