I don't have XBOX360 so I can't test it for you.
Actually, you're free to modify the above code
yourself and it is very easy.

There are many buttons available such as :
joy_1...12, joy2_1...12 joy_buttons...etc.
They are all described well in the manual.