MouseDevice.MouseMoved Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the mouse pointer is moved.
// Register
event_token MouseMoved(TypedEventHandler<MouseDevice, MouseEventArgs const&> const& handler) const;
// Revoke with event_token
void MouseMoved(event_token const* cookie) const;
// Revoke with event_revoker
MouseDevice::MouseMoved_revoker MouseMoved(auto_revoke_t, TypedEventHandler<MouseDevice, MouseEventArgs const&> const& handler) const;
public event TypedEventHandler<MouseDevice,MouseEventArgs> MouseMoved;
function onMouseMoved(eventArgs) { /* Your code */ }
mouseDevice.addEventListener("mousemoved", onMouseMoved);
mouseDevice.removeEventListener("mousemoved", onMouseMoved);
- or -
mouseDevice.onmousemoved = onMouseMoved;
Public Custom Event MouseMoved As TypedEventHandler(Of MouseDevice, MouseEventArgs)