(SDL3バージョンはSDL3/SDL_GetHapticFeaturesを参照すること)
unsigned int SDL_HapticQuery(SDL_Haptic* haptic)
| haptic | 調査するデバイス |
extern SDL_Haptic *haptic;
if (SDL_HapticQuery(haptic) & SDL_HAPTIC_CONSTANT) {
SDL_Log("一定ハプティック効果(constant haptic effect)あり!");
}
SDL 2.0.0以降