Поделиться через


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)

Применяется к

См. также раздел