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

SDL_GetGamepadButtonLabel

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

ヘッダ

SDL3/SDL_gamepad.h

構文

SDL_GamepadButtonLabel SDL_GetGamepadButtonLabel(SDL_Gamepad *gamepad, SDL_GamepadButton button);

引数

SDL_Gamepad *gamepadゲームパッド
SDL_GamepadButtonbuttonボタンのインデックス番号(SDL_GamepadButtonの値の1つ)

戻り値

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

スレッドセーフ

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

バージョン

SDL 3.2.0以降

関連項目

SDL Wikiへのリンク

SDL_GetGamepadButtonLabel - SDL Wiki