目次 - API(機能別) - ゲームコントローラー - SDL_GameControllerGetButtonFromString

SDL_GameControllerGetButtonFromString

文字列をボタンマッピングに変換する

構文

SDL_GameControllerButton SDL_GameControllerGetButtonFromString(const char* pchString)

引数

pchString文字列

戻り値

成功のときボタンマッピング(SDL_GameControllerButton), 失敗のときSDL_CONTROLLER_BUTTON_INVALIDを戻す.

バージョン

SDL 2.0.0以降

関連項目(関数)

SDL_GameControllerGetAxisFromString

SDL Wikiへのリンク

SDL_GameControllerGetButtonFromString - SDL Wiki