SysSpatialInputDeviceWatcher.Updated 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當現有的空間輸入裝置已更新其中繼資料時所引發的事件。
重要
此 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)