Reference

XFreeDeviceList(3) on Linux

The text 662e5b5dd926, as Debian 12 (Bookworm) shipped it.

list available input devices

XFreeDeviceList(3) on Linux now