目次 - API(機能別) - 力覚フィードバック - SDL_HapticRumblePlay

SDL_HapticRumblePlay

ハプティックデバイスを振動させる

構文

int SDL_HapticRumblePlay(SDL_Haptic* haptic, float strength, Uint32 length)

引数

haptic振動させるハプティックデバイス
float0.0〜1.0の振動の強度
Uint32振動させるミリ秒単位の時間

戻り値

成功のとき0, 失敗のとき負の数のエラーコードを戻す. SDL_GetError()で詳細を知ることができる.

関連項目(関数)

SDL_HapticRumbleInit
SDL_HapticRumbleStop
SDL_apticRumbleSupported

SDL Wikiへのリンク

SDL_HapticRumblePlay - SDL Wiki