From 108f85766c8bb9d895a9d3a98d063b39b5ccf30e Mon Sep 17 00:00:00 2001 From: Struma Date: Wed, 15 Jan 2020 01:18:04 -0500 Subject: [PATCH] Actually init haptics --- src/main.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.mm b/src/main.mm index cdd5d12e..eb44e83b 100644 --- a/src/main.mm +++ b/src/main.mm @@ -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; }