語言

InputPointerSource.PointerPressed 事件

定義

當滑鼠按鍵被按下,或手指或筆開始接觸觸控板表面時,且仍在此 輸入指標源範圍內。

// 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。

適用於