目次 - SDL 2.0 API(機能別) - ゲームコントローラー - SDL_GameControllerGetBindForButton
(SDL3バージョンはSDL3/SDL_GetGamepadBindingsを参照すること)
SDL_GameControllerGetBindForButton
ゲームコントローラー ボタン マッピングのためのジョイスティック レイヤー バインドを得る
構文
SDL_GameControllerButtonBind SDL_GameControllerGetBindForButton(SDL_GameController* gamecontroller, SDL_GameControllerButton button)
引数
戻り値
バインドを表すSDL_GameControllerButtonBindを戻す.
失敗(例えば指定したボタンがデバイスに存在しない)のとき.bindTypeの値がSDL_CONTROLLER_BINDTYPE_NONEとなる.
バージョン
SDL 2.0.0以降
関連項目(構造体)
SDL_GameControllerButtonBind
関連項目(関数)
SDL_GameControllerGetBindForAxis
SDL Wikiへのリンク
SDL_GameControllerGetBindForButton - SDL Wiki