Share via


Gamepad.GetButtonLabel(GamepadButtons) メソッド

定義

指定したボタンのボタン ラベルを取得します。

public:
 virtual GameControllerButtonLabel GetButtonLabel(GamepadButtons button) = GetButtonLabel;
GameControllerButtonLabel GetButtonLabel(GamepadButtons const& button);
public GameControllerButtonLabel GetButtonLabel(GamepadButtons button);
function getButtonLabel(button)
Public Function GetButtonLabel (button As GamepadButtons) As GameControllerButtonLabel

パラメーター

button
GamepadButtons

ラベルを取得するボタン。

戻り値

指定したボタンのラベル。 ボタン ラベルが空白の場合、またはコントローラーのボタンに既知のラベルがない場合は、 None が返されます。

Windows の要件

デバイス ファミリ
Windows 10 Anniversary Edition (10.0.14393.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v3.0 で導入)

適用対象

こちらもご覧ください