Reference

XGetMotionEvents(3) on Linux

The text d82aa8a110d1, as Debian 5.0 (Lenny) shipped it.

send events and pointer motion history structure

XGetMotionEvents(3) on Linux now