InputPointerSource.PointerPressed 事件

定义

当按下鼠标按钮或手指或笔启动与数字化器表面的接触时,在此 InputPointerSource 的边界内发生。

// Register
event_token PointerPressed(TypedEventHandler<InputPointerSource, PointerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
InputPointerSource::PointerPressed_revoker PointerPressed(auto_revoke_t, TypedEventHandler<InputPointerSource, PointerEventArgs const&> const& handler) const;
public event TypedEventHandler<InputPointerSource,PointerEventArgs> PointerPressed;
function onPointerPressed(eventArgs) { /* Your code */ }
inputPointerSource.addEventListener("pointerpressed", onPointerPressed);
inputPointerSource.removeEventListener("pointerpressed", onPointerPressed);
- or -
inputPointerSource.onpointerpressed = onPointerPressed;
Public Custom Event PointerPressed As TypedEventHandler(Of InputPointerSource, PointerEventArgs) 

事件类型

注解

交互会话在检测到单个联系人时开始,当不再检测到该联系人以及同一会话中的所有后续联系人时结束。 同一会话中的所有联系人共享相同的帧 ID。

适用于