共用方式為


SysSpatialInputDeviceWatcher.Updated 事件

定義

當現有的空間輸入裝置已更新其中繼資料時所引發的事件。

重要

此 API 僅適用于 Windows 作業系統的元件。 對這些 API 的呼叫會在執行時間失敗,其他所有進程都會失敗。 未來 Windows 版本中可能會修改或移除這些 API。

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

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

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

事件類型

適用於