HomeSort by relevance Sort by last modified time
    Searched defs:haptic (Results 1 - 3 of 3) sorted by null

  /prebuilts/misc/windows/sdl2/test/
testrumble.c 38 static SDL_Haptic *haptic; variable
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);
    [all...]
testhotplug.c 28 SDL_Haptic *haptic = NULL; local
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")
    [all...]
testhaptic.c 38 static SDL_Haptic *haptic; variable
45 static void HapticPrintSupported(SDL_Haptic * haptic);
89 SDL_Log("%d Haptic devices detected.\n", SDL_NumHaptics());
109 haptic = SDL_HapticOpen(i);
110 if (haptic == NULL) {
111 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Unable to create the haptic device: %s\n",
116 HapticPrintSupported(haptic);
118 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "No Haptic devices found!\n");
128 supported = SDL_HapticQuery(haptic);
140 id[nefx] = SDL_HapticNewEffect(haptic, &efx[nefx])
    [all...]

Completed in 1459 milliseconds