InputPointerSource.PointerPressed 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
// 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。