Hi Grindalf Games!
I don't know if it's still any use to you, but I wrapped the BlitzMax NG FreeJoy commands for Blitz3D to get X360/XBone controller access, including analog triggers. (DLL + .decls file.)
This link WILL likely report bad certificate, warnings, end of the world, etc -- I recommend running the zip through VirusTotal or your own virus checker, but only the DLL is executable (and comes with BlitzMax NG source), everything else is plain text.
Instructions in info.txt at:
http://www.hi-toro.com/blitz/xjoy.zip
(DruggedBunny, formerly aka. BlitzSupport!)