A thought I had regarding the button flip issue, check your Steam controller settings. I believe Steam is able to remap controller buttons before they get to your game and there is a chance something funky is going on at that level.
I tried the link you provided and everything seemed to be reading correctly. As for the steam controller settings that actually how I'm correcting the issue as that was the first thing I checked.