SpatialInteractionManager.SourceReleased 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 hand, motion controller, or speech source has exited a pressed state.
// Register
event_token SourceReleased(TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs const&> const& handler) const;
// Revoke with event_token
void SourceReleased(event_token const* cookie) const;
// Revoke with event_revoker
SpatialInteractionManager::SourceReleased_revoker SourceReleased(auto_revoke_t, TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialInteractionManager,SpatialInteractionSourceEventArgs> SourceReleased;
function onSourceReleased(eventArgs) { /* Your code */ }
spatialInteractionManager.addEventListener("sourcereleased", onSourceReleased);
spatialInteractionManager.removeEventListener("sourcereleased", onSourceReleased);
- or -
spatialInteractionManager.onsourcereleased = onSourceReleased;
Public Custom Event SourceReleased As TypedEventHandler(Of SpatialInteractionManager, SpatialInteractionSourceEventArgs)
Event Type
Remarks
Inspect the PressKind to determine the nature of the release.
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin