I originally posted this in another thread, but thought it might be useful to those with 45 degree sticks on their CP.
It is the mappings necessary to cause a standard 8-way stick, that is set at 45 degrees (like P3 and P4 on alot of people's quad panels), to function like it is lined up perpendicular to the screen.
This will work with any 8-way stick, but will work best with round restricted sticks (Wicos/Monroes/P-360/49-way DRS)
Red is the MAME command, Green is the Joystick settings
To Rotate UP 45 degrees RIGHT:
UP=(Up NOT Left) OR (Right NOT Down)
LEFT=(Left NOT Down) OR (Up NOT Right)
DOWN=(Down NOT Right) OR (Left NOT Up)
RIGHT=(Right NOT Up) OR (Down NOT Left)
To Rotate UP 45 degrees LEFT:
UP=(Up NOT Right) OR (Left NOT Down)
LEFT=(Left NOT Up) OR (Down NOT Right)
DOWN=(Down NOT Left) OR (Right NOT Up)
RIGHT=(Right NOT Down) OR (Up NOT Left)
To set UP for the right rotation above, you would do the following.
1) Go to "input settings for this game" in MAME.
2) Select P1-UP, and hit ENTER.
3) Push Up on the joystick, release it, and immediately Push Left twice.
(That will set the command to P1-UP=Up NOT Left).
4) Stay on P1-UP, and press ENTER again.
5) Push Right on the joystick, release it, and immediately Push Down twice.
(The command for P1-Up should now read P1-Up=Up NOT Left OR Right NOT Down).
That will cause MAME to read Up-Right on the Joystick as UP, but will send commands for UP AND LEFT when the joystick is in its TRUE Up position.
This will, in effect, turn the joystick back perpendicular to the monitor, as far as the feel of the controls goes.