目次 - SDL 3.0 API(機能別) - ゲームパッド - SDL_GetGamepadButtonLabelForType

SDL_GetGamepadButtonLabelForType

ゲームパッドの種類別のボタンのラベルを得る

ヘッダ

SDL3/SDL_gamepad.h

構文

SDL_GamepadButtonLabel SDL_GetGamepadButtonLabelForType(SDL_GamepadType type, SDL_GamepadButton button);

引数

SDL_GamepadTypetypeゲームパッドの種類
SDL_GamepadButtonbuttonボタンのインデックス番号(SDL_GamepadButtonの値の1つ)

戻り値

(SDL_GamepadButtonLabel) ボタンと一致するSDL_GamepadButtonLabel列挙体の値を戻す.

スレッドセーフ

この関数はどのスレッドからも安全に呼べる.

バージョン

SDL 3.2.0以降

関連項目

SDL Wikiへのリンク

SDL_GetGamepadButtonLabelForType - SDL Wiki