I use the 360 controller, I didn't have to do anything with the script.
Main problem is Microsoft's drivers are complete [censored]. There is a 3rd party 360 driver and small application that makes things run much easier.
http://xbcd360guide.50webs.com/guide.html
Thats the guide everyone should follow if using a 360 controller. After I installed the new drivers everything worked perfectly. The two trigger buttons increment the bet, the analog sticks control table selection, and all the buttons are programmable and recognized by TableNavigator.