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

SDL_GameControllerGetButtonFromString

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

構文

SDL_GameControllerButton SDL_GameControllerGetButtonFromString(const char* pchString)

引数

pchString文字列

戻り値

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

関連項目(関数)

SDL_GameControllerGetAxisFromString

SDL Wikiへのリンク

SDL_GameControllerGetButtonFromString - SDL Wiki