RadialController.ScreenContactStarted 事件

定義

在滾輪裝置與數位板表面之間偵測到初始接觸,且自訂 RadialController 工具作用中時發生。

您的應用程式在下列情況下不會收到此事件:

提示

除了預設的按住功能表體驗之外,Surface Dial 也可以直接放在Surface Studio的畫面上。 這會產生特殊的「螢幕上」功能表。

藉由偵測 Surface Dial 的接觸位置和界限,系統可以處理裝置的遮蔽,並顯示較大的功能表版本,以包裝在 Dial 外部。 您的應用程式也可以使用這個相同的資訊,針對裝置是否存在及其預期的使用方式 (例如使用者的手與手臂的放置位置) 打造 UI。

// Register
event_token ScreenContactStarted(TypedEventHandler<RadialController, RadialControllerScreenContactStartedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
RadialController::ScreenContactStarted_revoker ScreenContactStarted(auto_revoke_t, TypedEventHandler<RadialController, RadialControllerScreenContactStartedEventArgs const&> const& handler) const;
public event TypedEventHandler<RadialController,RadialControllerScreenContactStartedEventArgs> ScreenContactStarted;
function onScreenContactStarted(eventArgs) { /* Your code */ }
radialController.addEventListener("screencontactstarted", onScreenContactStarted);
radialController.removeEventListener("screencontactstarted", onScreenContactStarted);
- or -
radialController.onscreencontactstarted = onScreenContactStarted;
Public Custom Event ScreenContactStarted As TypedEventHandler(Of RadialController, RadialControllerScreenContactStartedEventArgs) 

事件類型

適用於

另請參閱