Reference

XkbSetDeviceButtonActions(3) on Linux

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

Change only the button actions for an input extension device

XkbSetDeviceButtonActions(3) on Linux now