I described the way our team has been doing it the past few years
here.
Hopefully sooner than later we will create a wrapper class for joystick objects so it's easier for ourselves and others to use this in the future.
Let me know if you have any questions.