Actually init haptics

This commit is contained in:
Struma 2020-01-15 01:18:04 -05:00 committed by Roza
parent 982a4594c2
commit 108f85766c

View file

@ -161,7 +161,7 @@ int main(int argc, char *argv[]) {
SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");
/* initialize SDL first */
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) {
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC) < 0) {
showInitError(std::string("Error initializing SDL: ") + SDL_GetError());
return 0;
}