Share via


SysSpatialInputDeviceWatcher.Added 이벤트

정의

새 공간 입력 디바이스가 추가될 때 발생하는 이벤트입니다.

중요

이 API는 Windows 운영 체제의 구성 요소에서만 사용할 수 있습니다. 이러한 API에 대한 호출은 런타임에 다른 모든 프로세스에 대해 실패합니다. 이러한 API는 향후 Windows 릴리스에서 수정되거나 제거될 수 있습니다.

// Register
event_token Added(TypedEventHandler<SysSpatialInputDeviceWatcher, SysSpatialInputDevice const&> const& handler) const;

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

// Revoke with event_revoker
SysSpatialInputDeviceWatcher::Added_revoker Added(auto_revoke_t, TypedEventHandler<SysSpatialInputDeviceWatcher, SysSpatialInputDevice const&> const& handler) const;
public event TypedEventHandler<SysSpatialInputDeviceWatcher,SysSpatialInputDevice> Added;
function onAdded(eventArgs) { /* Your code */ }
sysSpatialInputDeviceWatcher.addEventListener("added", onAdded);
sysSpatialInputDeviceWatcher.removeEventListener("added", onAdded);
- or -
sysSpatialInputDeviceWatcher.onadded = onAdded;
Public Custom Event Added As TypedEventHandler(Of SysSpatialInputDeviceWatcher, SysSpatialInputDevice) 

이벤트 유형

적용 대상