Language

InputPointerSource.PointerMoved イベント

定義

この InputPointerSource の境界内でポインターが移動したときに発生します。

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

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

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

イベントの種類

注釈

マウスデバイスとペンデバイスは、タッチよりも頻繁に PointerMoved イベントを起動します。 タッチ ポイントは、指がサーフェスに触れている場合にのみ検出できます。マウス ボタンが押されていない場合でも、マウスは常に表示される画面上のカーソルを持ち、ペンはデジタイザーの表面に触れることなくポイントできます。

マウス入力は、マウス入力が最初に検出されたときに割り当てられた 1 つのポインターに関連付けられます。また、マウスが開始するすべての操作は同じ PointerId を持ちます。 マウス ボタン (左、ホイール、または右) をクリックすると、 PointerPressed イベントを通じてポインターとそのボタンの間に二次的な関連付けが作成されます。 PointerReleased イベントは、同じマウス ボタンが離された場合にのみ発生します (このイベントが完了するまで、他のボタンをポインターに関連付けすることはできません)。 この排他的な関連付けのため、他のマウス ボタンクリックは PointerMoved イベントを介してルーティングされます。

適用対象