diff --git a/source/input.cpp b/source/input.cpp index 04e4283..1cf74ad 100644 --- a/source/input.cpp +++ b/source/input.cpp @@ -186,6 +186,7 @@ bool Input::checkInput(Uint8 input, bool repeat) // Comprueba si hay un mando conectado bool Input::discoverGameController() { + printf("%i joystics found", SDL_NumJoysticks()); for (int i = 0; i < SDL_NumJoysticks(); ++i) { if (SDL_IsGameController(i)) @@ -232,7 +233,7 @@ bool Input::discoverGameController() //printf("%i buttons\n", SDL_JoystickNumButtons(mGameController)); // Obtiene el dispositivo de control háptico - /*mControllerHaptic = SDL_HapticOpenFromJoystick(mGameController); + mControllerHaptic = SDL_HapticOpenFromJoystick(mGameController); if (mControllerHaptic == NULL) { printf("Warning: Controller does not support haptics!\nSDL Error: %s\n", SDL_GetError());