共用方式為


ICorePointerInputSource.PointerPressed 事件

定義

發生于按下動作 (例如螢幕按下或按一下滑鼠) 收到指標時。

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

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

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

事件類型

適用於