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