Reference

XGetDeviceButtonMapping(3) on Linux

The text 01bb16fcc625, as Debian 12 (Bookworm) shipped it.

query or change device button mappings

XGetDeviceButtonMapping(3) on Linux now