To attach an attribute to a device axis
You can also use command attachments with devices that have buttons. When you press the button, the command associated with the button executes.
To attach a command to a button
To attach a command to a device value