I think I made some mistakes and need to explain in a more correct way..
First of all, keep the registry as it is (or delete the axes folders you added if you want) at the moment and then go to control panel to figure out how your right stick behave, by going through calibration once or simply by looking at the "red bars". There are words such as z-axis, z-rotation, slider etc under the red bars.
By doing this you will have a clear picture of whether up/down and right/left movement of your stick are assigned to z-axis, z-rotation, rudder, throttle, slider or something else. It is very very important for you to overide your axes correctly. If you do not know that, you cannot assign the appropriate attributes values. Also you need to know which axis goes before the other.
For example, before I¡¦ve done the axis override, i saw that my controller has up/down movenment as z-axis and right/left movement as z-rotation. Z-axis goes before Z-rotation. In the game, up/down becomes right/left and vice versa. I went to the registry and found that i have 0,1,2,5 in the calibration folder. Since they are listed in the same order as in the control panel, it means that z-axis (up/down) = 2, z-rotation (left/right) = 5. Of course they should be in this manner by default.
I assign ¡§2¡¨ with ¡§Attributes¡¨ values 35, and ¡§5¡¨ with ¡§Attributes¡¨ values 32. By doing this override, I actually change their positions in the control panel. That means up/down is still z-axis and left/right is still z-rotation. But this time left/right (z-rotation) goes before up/down (z-axis). By doing the axis override, the system will ¡§accept¡¨ folder ¡§2¡¨ as left/right and folder ¡§5¡¨ as up/down.
But the most important point is that in order to make the game runs correctly, you need to place left/right before up/down. So no matter what axis your stick is assigned if you notice up/down was placed before left/right, then interchange them with their ¡§appropriate¡¨ values.
With reference to the following page (table 1),
http://www.microsoft.com/whdc/hwdev/tech/input/hidgame.mspx
You can assign accordingly. You may have folders other than 2 and 5, so make sure that what axis belongs to what folder by default. For example, if you have ¡§5¡¨ and ¡§6¡¨ and your right stick does not work properly, you may have up/down as 5, and left/right as 6. Just interchange with values 36 and 35 respectively. Some gamepads would be more complicated. Please post your reg data (at this moment), folder numbers (0, 1, ¡K) and what type of axis they belong (z, Rz, slider, or others)