Could you try it out in here and let me know if the X button triggers anything: https://haxeflixel.com/demos/GamepadTest/
It doesn't detect my controller. My controller's got different modes (Xinput and Dinput) and neither of them are detected
Damn. I don't think I'll be able to get it working for you. Sorry :(