Lines Matching refs:haptic
28 SDL_Haptic *haptic = NULL;
60 SDL_Log("There are %d haptic devices at startup\n", SDL_NumHaptics());
86 haptic = SDL_HapticOpenFromJoystick(joystick);
87 if (haptic)
89 SDL_Log("Joy Haptic Opened\n");
90 if (SDL_HapticRumbleInit( haptic ) != 0)
93 SDL_HapticClose(haptic);
94 haptic = NULL;
97 SDL_Log("Joy haptic open FAILED!: %s\n", SDL_GetError());
102 SDL_Log("No haptic found\n");
112 if(enable_haptic && haptic)
114 SDL_HapticClose(haptic);
115 haptic = NULL;
126 SDL_HapticRumblePlay(haptic, 0.25, 250);
130 if(enable_haptic && haptic)
132 SDL_HapticRumblePlay(haptic, 0.25, 250);
155 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick and haptic support.\n");