RadialController.ButtonPressed Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the wheel device is pressed.
// 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)
Event Type
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|