Take a look at these:
You can use evtest /dev/input/<device> to find which device has which ID.
evtest /dev/input/<device>