다음을 통해 공유


SpatialInteractionManager.SourcePressed 이벤트

정의

손, 동작 컨트롤러 또는 음성 원본이 누름 상태로 들어갔을 때 발생합니다.

// 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) 

이벤트 유형

설명

PressKind를 검사하여 언론의 특성을 확인합니다.

적용 대상