Home | History | Annotate | Download | only in test

Lines Matching defs:haptic

38 static SDL_Haptic *haptic;
78 SDL_Log("%d Haptic devices detected.\n", SDL_NumHaptics());
98 haptic = SDL_HapticOpen(i);
99 if (haptic == NULL) {
100 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Unable to create the haptic device: %s\n",
106 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "No Haptic devices found!\n");
113 if (SDL_HapticRumbleSupported(haptic) == SDL_FALSE) {
117 if (SDL_HapticRumbleInit(haptic) != 0) {
122 if (SDL_HapticRumblePlay(haptic, 0.5, 5000) != 0) {
128 SDL_HapticRumbleStop(haptic);
131 if (SDL_HapticRumblePlay(haptic, 0.3f, 5000) != 0) {
138 if (haptic != NULL)
139 SDL_HapticClose(haptic);
150 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Haptic support.\n");