SpatialInteractionManager.SourcePressed SpatialInteractionManager.SourcePressed SpatialInteractionManager.SourcePressed SpatialInteractionManager.SourcePressed SpatialInteractionManager.SourcePressed Event

Definition

Occurs when a hand, motion controller, or source of voice commands has entered a pressed state.

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

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

// Revoke with event_revoker
SourcePressed_revoker SourcePressed(auto_revoke_t, TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs> const& handler) const;
public event TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs> SourcePressed
Public Event SourcePressed As TypedEventHandler (Of SpatialInteractionManager, SpatialInteractionSourceEventArgs)
function onSourcePressed(eventArgs){/* Your code */}


spatialInteractionManager.addEventListener("sourcepressed", onSourcePressed);
spatialInteractionManager.removeEventListener("sourcepressed", onSourcePressed);

Remarks

Inspect the PressKind to determine the nature of the press.