Reference

XkbSetDeviceButtonActions(3) on Linux

The text 46b858c8e950, as Debian 9 (Stretch) shipped it.

Change only the button actions for an input extension device

XkbSetDeviceButtonActions(3) on Linux now