track-mouse

track-mouse is a Lisp macro in `subr.el'.

(track-mouse &rest BODY)

Evaluate BODY with mouse movement events enabled.
Within a `track-mouse' form, mouse motion generates input events that
you can read with `read-event'.
Normally, mouse motion is ignored.