New answers tagged input-devices
I did it years ago using xpadder, but I think it is just for Windows. You could try qjoypad or joy2key . Both of these are available in the Software Center.
This can't be done with xinput/xf86-input-evdev, you would have to do it directly in evdev, check out evtest package.
Top 50 recent answers are included