Partager via


SysSpatialInputDeviceWatcher.Added Événement

Définition

Événement déclenché lors de l’ajout d’un nouveau périphérique d’entrée spatiale.

Important

Cette API est disponible uniquement pour les composants du système d’exploitation Windows. Les appels à ces API échouent au moment de l’exécution pour tous les autres processus. Ces API peuvent être modifiées ou supprimées dans les futures versions de 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) 

Type d'événement

S’applique à