Reference

XFreeDeviceList(3) on Linux

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

list available input devices

XFreeDeviceList(3) on Linux now