Compartilhar via


RadialController.ButtonPressed Evento

Definição

Ocorre quando o dispositivo de roda é pressionado.

// Register
event_token ButtonPressed(TypedEventHandler<RadialController, RadialControllerButtonPressedEventArgs const&> const& handler) const;

// Revoke with event_token
void ButtonPressed(event_token const* cookie) const;

// Revoke with event_revoker
RadialController::ButtonPressed_revoker ButtonPressed(auto_revoke_t, TypedEventHandler<RadialController, RadialControllerButtonPressedEventArgs const&> const& handler) const;
public event TypedEventHandler<RadialController,RadialControllerButtonPressedEventArgs> ButtonPressed;
function onButtonPressed(eventArgs) { /* Your code */ }
radialController.addEventListener("buttonpressed", onButtonPressed);
radialController.removeEventListener("buttonpressed", onButtonPressed);
- or -
radialController.onbuttonpressed = onButtonPressed;
Public Custom Event ButtonPressed As TypedEventHandler(Of RadialController, RadialControllerButtonPressedEventArgs) 

Tipo de evento

Requisitos do Windows

Família de dispositivos
Windows 10 Creators Update (introduzida na 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v4.0)

Aplica-se a

Confira também