次の方法で共有


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 イベントによってポインターとそのボタンの間に 2 番目の関連付けが行われます。 PointerReleased イベントは、同じマウス ボタンを離したときにだけ発生します (イベントが完了するまではそのポインターに他のボタンが関連付けられることはありません)。 この排他的な関連付けのために、他のマウス ボタンをクリックした場合は、PointerMoved イベントによってルーティングされます。

適用対象