Freigeben über


RadialController.ButtonPressed Ereignis

Definition

Tritt auf, wenn das Radgerät gedrückt wird.

// 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) 

Ereignistyp

Windows-Anforderungen

Gerätefamilie
Windows 10 Creators Update (eingeführt in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v4.0)

Gilt für:

Weitere Informationen