Gamepad.GetButtonLabel(GamepadButtons) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
|