/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...] |
/prebuilts/misc/darwin-x86_64/sdl2/include/SDL2/ |
SDL_haptic.h | 25 * \brief The SDL Haptic subsystem allows you to control haptic (force feedback) 30 * - Open a Haptic Device. 37 * - Close the haptic device with SDL_HapticClose(). 41 * SDL_Haptic *haptic; 44 * haptic = SDL_HapticOpen( 0 ); 45 * if (haptic == NULL) 49 * if (SDL_HapticRumbleInit( haptic ) != 0) 53 * if (SDL_HapticRumblePlay( haptic, 0.5, 2000 ) != 0) 58 * SDL_HapticClose( haptic ); [all...] |
/prebuilts/misc/windows/sdl2/i686-w64-mingw32/include/SDL2/ |
SDL_haptic.h | 25 * \brief The SDL Haptic subsystem allows you to control haptic (force feedback) 30 * - Open a Haptic Device. 37 * - Close the haptic device with SDL_HapticClose(). 41 * SDL_Haptic *haptic; 44 * haptic = SDL_HapticOpen( 0 ); 45 * if (haptic == NULL) 49 * if (SDL_HapticRumbleInit( haptic ) != 0) 53 * if (SDL_HapticRumblePlay( haptic, 0.5, 2000 ) != 0) 58 * SDL_HapticClose( haptic ); [all...] |
/prebuilts/misc/windows/sdl2/include/ |
SDL_haptic.h | 25 * \brief The SDL Haptic subsystem allows you to control haptic (force feedback) 30 * - Open a Haptic Device. 37 * - Close the haptic device with SDL_HapticClose(). 41 * SDL_Haptic *haptic; 44 * haptic = SDL_HapticOpen( 0 ); 45 * if (haptic == NULL) 49 * if (SDL_HapticRumbleInit( haptic ) != 0) 53 * if (SDL_HapticRumblePlay( haptic, 0.5, 2000 ) != 0) 58 * SDL_HapticClose( haptic ); [all...] |
/prebuilts/misc/windows/sdl2/x86_64-w64-mingw32/include/SDL2/ |
SDL_haptic.h | 25 * \brief The SDL Haptic subsystem allows you to control haptic (force feedback) 30 * - Open a Haptic Device. 37 * - Close the haptic device with SDL_HapticClose(). 41 * SDL_Haptic *haptic; 44 * haptic = SDL_HapticOpen( 0 ); 45 * if (haptic == NULL) 49 * if (SDL_HapticRumbleInit( haptic ) != 0) 53 * if (SDL_HapticRumblePlay( haptic, 0.5, 2000 ) != 0) 58 * SDL_HapticClose( haptic ); [all...] |
/compatibility/cdd/3_software/ |
3_10_accessibility.md | 7 text-to-speech, haptic feedback, and trackball/d-pad navigation.
|