Reference

XFreeDeviceList(3) on Linux

The text 746ac4fc7eae, as Debian 4.0 (Etch) shipped it.

list available input devices

XFreeDeviceList(3) on Linux now