Share via


Gamepad.GetButtonLabel(GamepadButtons) Method

Definition

Retrieves the button label for the specified button.

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

Parameters

button
GamepadButtons

The button for which to retrieve the label.

Returns

The label for the specified button. If the button label is blank or there is no known label for the controller's button, then None is returned.

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Applies to

See also