InputPointerSource.PointerPressed 活动
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
按下鼠标按钮时发生,或者手指或笔启动与数字化器图面的接触,同时在此 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。