How to get controller to work?

We have a generic logitech controller with 2 joysticks on it. How do we get the joystick on the right to work?

It depends on the game controller. Some reports the right stick as Z-axis, some reports it as the Twist-axis.