Detect mouse stopping?

Thinking out loud really, is there a way to detect a mouse stopping?

I’ve created something that reacts to the mouse x & y position, just wondered if there was some way of detecting if it stops moving?

Mhunki