SpatialInteractionManager.SourceDetected Événement

Définition

Se produit lorsqu’une nouvelle main, un contrôleur de mouvement ou une nouvelle source vocale a été détectée.

// Register
event_token SourceDetected(TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs const&> const& handler) const;

// Revoke with event_token
void SourceDetected(event_token const* cookie) const;

// Revoke with event_revoker
SpatialInteractionManager::SourceDetected_revoker SourceDetected(auto_revoke_t, TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialInteractionManager,SpatialInteractionSourceEventArgs> SourceDetected;
function onSourceDetected(eventArgs) { /* Your code */ }
spatialInteractionManager.addEventListener("sourcedetected", onSourceDetected);
spatialInteractionManager.removeEventListener("sourcedetected", onSourceDetected);
- or -
spatialInteractionManager.onsourcedetected = onSourceDetected;
Public Custom Event SourceDetected As TypedEventHandler(Of SpatialInteractionManager, SpatialInteractionSourceEventArgs) 

Type d'événement

S’applique à