Share via


SysSpatialInputDeviceWatcher.Added Event

Definition

The event that is raised when a new spatial input device is added.

Important

This API is available only to components of the Windows operating system. Calls to these APIs will fail at runtime for all other processes. These APIs may be modified or removed in future Windows releases.

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

Event Type

Applies to