Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Turning a Rotated 8-way via Software  (Read 1869 times)

0 Members and 1 Guest are viewing this topic.

NoOne=NBA=

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2718
  • Last login:July 23, 2011, 08:59:16 am
  • Just Say No To Taito! -Nichibutsu
Turning a Rotated 8-way via Software
« on: May 06, 2005, 07:16:24 pm »
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.
« Last Edit: May 06, 2005, 08:14:49 pm by NoOne=NBA= »

markrvp

  • ARGHHHHHHHHHHHHH!!!!!!!!!! True Genius!
  • Wiki Contributor
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3353
  • Last login:September 14, 2020, 10:19:57 am
  • NFL Expert
Re: Turning a Rotated 8-way via Software
« Reply #1 on: May 06, 2005, 07:28:58 pm »
Excellent!  Can you map it the other way?  I want to face the control panel at 45 degrees (from the left) and use my Player 1 joystick as the Robotron P1 Right Joystick (and the player 3 joystick which is rotated 45 degrees will correctly work as player 1 left joystick).

Here is the diagram.  The joystick is in a normal orientation, but I want to map it like in the diagram.


markrvp

  • ARGHHHHHHHHHHHHH!!!!!!!!!! True Genius!
  • Wiki Contributor
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3353
  • Last login:September 14, 2020, 10:19:57 am
  • NFL Expert
Re: Turning a Rotated 8-way via Software
« Reply #2 on: May 06, 2005, 07:39:25 pm »
Here's a better diagram showing both joysticks so you can see how Robotron would be played.

Veinman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 537
  • Last login:June 11, 2014, 02:40:27 pm
  • "Done" with The Legend of Mame
    • The Gelatinous Cube
Re: Turning a Rotated 8-way via Software
« Reply #3 on: May 06, 2005, 07:49:33 pm »
I'm guessing there wouldn't be a way to interpret different degrees, for example if your P3 and P4 were at 30 degree angles?

markrvp

  • ARGHHHHHHHHHHHHH!!!!!!!!!! True Genius!
  • Wiki Contributor
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3353
  • Last login:September 14, 2020, 10:19:57 am
  • NFL Expert
Re: Turning a Rotated 8-way via Software
« Reply #4 on: May 06, 2005, 08:04:32 pm »
The directions are relative to the switch (sensor locations).  Up will always be 90 degrees from right, etc.
« Last Edit: May 06, 2005, 08:06:38 pm by markrvp »

NoOne=NBA=

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2718
  • Last login:July 23, 2011, 08:59:16 am
  • Just Say No To Taito! -Nichibutsu
Re: Turning a Rotated 8-way via Software
« Reply #5 on: May 06, 2005, 08:06:28 pm »
Here's a better diagram showing both joysticks so you can see how Robotron would be played.

The mapping I did above will do exactly that for your P-1 stick, BUT.....why wouldn't you just use your P1 and P2 sticks for Robotron?

For 2 player SmashTV you would need to use P-3/P-1 and P-2/P-4 as controls, but for Robotron you'd want to be centered on the monitor, wouldn't you?

NoOne=NBA=

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2718
  • Last login:July 23, 2011, 08:59:16 am
  • Just Say No To Taito! -Nichibutsu
Re: Turning a Rotated 8-way via Software
« Reply #6 on: May 06, 2005, 08:07:20 pm »
I'm guessing there wouldn't be a way to interpret different degrees, for example if your P3 and P4 were at 30 degree angles?

No, it's increments of 45 degrees only.

NoOne=NBA=

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2718
  • Last login:July 23, 2011, 08:59:16 am
  • Just Say No To Taito! -Nichibutsu
Re: Turning a Rotated 8-way via Software
« Reply #7 on: May 06, 2005, 08:13:20 pm »
I revised my original post to include a left rotation for the stick as well.

markrvp

  • ARGHHHHHHHHHHHHH!!!!!!!!!! True Genius!
  • Wiki Contributor
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3353
  • Last login:September 14, 2020, 10:19:57 am
  • NFL Expert
Re: Turning a Rotated 8-way via Software
« Reply #8 on: May 06, 2005, 09:07:40 pm »
Sorry, I had to go work for a little while. 

I just used Robotron for an example.
« Last Edit: May 06, 2005, 09:10:18 pm by markrvp »

markrvp

  • ARGHHHHHHHHHHHHH!!!!!!!!!! True Genius!
  • Wiki Contributor
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3353
  • Last login:September 14, 2020, 10:19:57 am
  • NFL Expert
Re: Turning a Rotated 8-way via Software
« Reply #9 on: May 06, 2005, 09:48:15 pm »
Okay, I just mapped my GP-Wiz 49 49-way joystick with your first settings to rotate up Right 45 degrees . . .

. . . AND I CAN CONFIRM THAT THEY WORK.

The only thing is that I couldn't hit the joystick combinations of Up not Right for both conditions correctly, soooooo, I just edited the config file.  With the GP-Wiz 49 I had to edit the Joy_1_Code entries (for my one stick). 

Thanks again NoOne=NBA

NoOne=NBA=

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2718
  • Last login:July 23, 2011, 08:59:16 am
  • Just Say No To Taito! -Nichibutsu
Re: Turning a Rotated 8-way via Software
« Reply #10 on: May 07, 2005, 12:04:36 am »
Glad to help.

IntruderAlert

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 873
  • Last login:May 02, 2007, 09:10:59 am
  • Chicken.. Fight Like A Robot
    • Intruder Alert
Re: Turning a Rotated 8-way via Software
« Reply #11 on: May 07, 2005, 12:53:14 am »
Yeah thanks for working this out dude!
I'm still trying to decide on my new panel layout but I'm planning to have the sticks in line on 45 degree angles and using this method for 2 player dual stick games. :)
« Last Edit: May 07, 2005, 12:55:21 am by IntruderAlert »