Bagikan melalui


RadialController.ButtonPressed Kejadian

Definisi

Terjadi ketika perangkat roda ditekan.

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

Jenis Acara

Persyaratan Windows

Rangkaian perangkat
Windows 10 Creators Update (diperkenalkan dalam 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v4.0)

Berlaku untuk

Lihat juga