RadialController.ScreenContactContinued 事件

定義

只有在與數位板表面接觸時移動滾輪裝置,而且自訂 RadialController 工具作用中時才會發生。

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

提示

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

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

此事件會在 ScreenContactStarted 之後發生 ,並在 ScreenContactEnded上停止。

// Register
event_token ScreenContactContinued(TypedEventHandler<RadialController, RadialControllerScreenContactContinuedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
RadialController::ScreenContactContinued_revoker ScreenContactContinued(auto_revoke_t, TypedEventHandler<RadialController, RadialControllerScreenContactContinuedEventArgs const&> const& handler) const;
public event TypedEventHandler<RadialController,RadialControllerScreenContactContinuedEventArgs> ScreenContactContinued;
function onScreenContactContinued(eventArgs) { /* Your code */ }
radialController.addEventListener("screencontactcontinued", onScreenContactContinued);
radialController.removeEventListener("screencontactcontinued", onScreenContactContinued);
- or -
radialController.onscreencontactcontinued = onScreenContactContinued;
Public Custom Event ScreenContactContinued As TypedEventHandler(Of RadialController, RadialControllerScreenContactContinuedEventArgs) 

事件類型

適用於

另請參閱