共用方式為


RadialController.ButtonPressed 事件

定義

發生于按下滾輪裝置時。

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

事件類型

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

適用於

另請參閱