The FreeBSD implementation was used as template file, with some logic to get the devices supported inspired by SDL2 game controller support. Works for me with Logitech F310, tested with witchblast and extremetuxracer. Test reports by Raf Czlonka as well. OK pascal@ (MAINTAINER)