Screencast software

In some screencasts I see mouse movements in perfectly straight lines or arcs, how is that done? Do they record their mouse movements using some mouse-movement-recording software, and then capture the video when playing back the mouse movements?