Compartir a través de


SpatialInteractionManager.SourcePressed Evento

Definición

Se produce cuando una mano, un controlador de movimiento o un origen de voz han entrado en un estado presionado.

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

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

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

Tipo de evento

Comentarios

Inspeccione pressKind para determinar la naturaleza de la prensa.

Se aplica a