SpatialGestureRecognizer.Tapped 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 a Tap or DoubleTap gesture is recognized.
// Register
event_token Tapped(TypedEventHandler<SpatialGestureRecognizer, SpatialTappedEventArgs const&> const& handler) const;
// Revoke with event_token
void Tapped(event_token const* cookie) const;
// Revoke with event_revoker
SpatialGestureRecognizer::Tapped_revoker Tapped(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialTappedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialTappedEventArgs> Tapped;
function onTapped(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("tapped", onTapped);
spatialGestureRecognizer.removeEventListener("tapped", onTapped);
- or -
spatialGestureRecognizer.ontapped = onTapped;
Public Custom Event Tapped As TypedEventHandler(Of SpatialGestureRecognizer, SpatialTappedEventArgs)
Event Type
Remarks
For hand interactions, the SpatialTappedEventArgs event fires on finger release after a finger press.
For speech interactions, this event fires after the system voice command "Select" has been processed.
For motion controller interactions, this event fires when the Select trigger or button is released after being pressed.