Refactor buttons variable in udev joypad driver