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 中引入)

适用于

另请参阅