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: MAME - Joystick options?  (Read 6247 times)

0 Members and 1 Guest are viewing this topic.

garnerb350

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 892
  • Last login:May 09, 2019, 09:36:49 pm
  • Crowded elevators smell different to midgets...
    • Hyperspin
MAME - Joystick options?
« on: February 16, 2009, 07:44:21 pm »
Had a hard time trying to figure out a title for this....


I currently finishing up on building my cab...
I was showing my wife the current setup...and she is a big Burgertime fan...

I have a X-arcade tankstick ( dual Joysticks) and when I brought up BT...I went through the usual setup... I hit 2 credits and also hit 2 players.... Only problem though is that the 2nd player doesnt work...I went to the options and made sure that the joystick controls were correct and they were......I can play fighter games perfect...but as for Donkey Kong...Burgetime, pacman and etc....the 2nd player doesnt work....My wife was asking me what was the problem...

My thinking is that the orginal arcades ( such as those games listed above) only had one joystick....players just switched...

Am I right?   

Kinda sucks...is there a way where I can fix this ?
的f first you don't succeed, then skydiving definitely isn't for you..." ~ Jack Handy

Paul Olson

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1235
  • Last login:June 20, 2024, 08:23:41 am
    • Paul's Arcade
Re: MAME - Joystick options?
« Reply #1 on: February 16, 2009, 09:22:36 pm »
Yeah, those games were alternating 2-player games. There really is no reason to change it since it is not possible for both players to play at the same time. If you really want to anyway, start the game, then hit TAB, select Input(this game), then remap the player 2 controls to your player 2 controls.

ViciousXUSMC

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 213
  • Last login:July 28, 2009, 10:25:53 am
Re: MAME - Joystick options?
« Reply #2 on: February 17, 2009, 03:43:10 am »
Had a hard time trying to figure out a title for this....


I currently finishing up on building my cab...
I was showing my wife the current setup...and she is a big Burgertime fan...

I have a X-arcade tankstick ( dual Joysticks) and when I brought up BT...I went through the usual setup... I hit 2 credits and also hit 2 players.... Only problem though is that the 2nd player doesnt work...I went to the options and made sure that the joystick controls were correct and they were......I can play fighter games perfect...but as for Donkey Kong...Burgetime, pacman and etc....the 2nd player doesnt work....My wife was asking me what was the problem...

My thinking is that the orginal arcades ( such as those games listed above) only had one joystick....players just switched...

Am I right?   

Kinda sucks...is there a way where I can fix this ?

Yeah I am pretty creative and think I have a fix for you.
______________________________________________________

First of all that stick should be programable, if you can do so just map P2 controlls to the exact same buttons as P1 controlls and your done, if you can not do that read my fix below.
______________________________________________________

 I plan to make a thread on this program at some point with all my neat tricks I have learned how to do.

Try this:

Go download glovepie - http://carl.kenner.googlepages.com/glovepie_download   try to find version .30 if you can (just google for it)

This is a scripting program that can tell your computer make any input into a different output, I use it to use my Nintendo Wiimote on my PC but I just for the heck of it tried something like this last week and it works, changing keys or swaping keys on the keyboard temporarly.

First of all Mame does not work with glovepie lafter .117 (found this out the hard way) so use Mame .117 or older

Open up glovepie and write a script like this.

(Just example keys, what you need to do is find out what key is used on the P2 tankstick buttons and assign them to the same function as the P1 buttons, so what your going to do is "clone" your P1 controls over to P2)

glovepie .29 script (no swallow command in .29 so that why I say find .30)

Code: [Select]
key.a = key.x
key.b = key.y
key.c = key.comma

After you have the script the way it needs to be save it and hit RUN!

When you pres key b on the keyboard, you will see key b & key y be typed, if you hit key a, you will see a & x.

Assuming key x was your P1 Button 1 in the tankstick and key a was the P2 button 1, you would now have the controlls mirrored.

The only thing do not like while it should not effect the game at all is that both keys are registered.

in glovepie .30 they added a new feature called swallow, it hides the key press from the computer so that only 1 key registers.


Glovepie .30 Script

Code: [Select]
key.a = swallow(key.x)
So with this script you press key x and key a is the only key that the computer would see.  So write the whole script to have P2 controls swallowed and equal to P1 controls and your all set.

It is possible other programs can do this same thing, one that comes to mind is AutoHotKey, and many game button mapping programs like Pinnical Game Profiler may also work but I have not tried them and do not know the script language for AutoHotKey.



garnerb350

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 892
  • Last login:May 09, 2019, 09:36:49 pm
  • Crowded elevators smell different to midgets...
    • Hyperspin
Re: MAME - Joystick options?
« Reply #3 on: February 17, 2009, 08:55:46 am »
Hey guys, I appreciate the help but both of those wont help me....I tried to remap when I first came across it...and it didnt work...also as for the program, I have ver...129. I just told my wife to just deal with it....be glad she at least has the game....and told her to get back in the kitchen and make me some pie!
的f first you don't succeed, then skydiving definitely isn't for you..." ~ Jack Handy

jasonbar

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2253
  • Last login:July 29, 2025, 09:33:05 pm
  • Dr. Inferno
    • The Infernolab
Re: MAME - Joystick options?
« Reply #4 on: February 17, 2009, 03:19:24 pm »
For most of those old 1-stick games, MAME's inputs for the 2nd joystick are meant to be used in a cocktail setup, where each player's sitting on the other side of the table.  Upright players took turns sharing the same joystick.


Hit Tab to go into MAME's settings, and enter "input for this game" screen.

Go down to P1 up & hit "Enter" to edit the keypress for that switch, then move the P1 stick up & then move the P2 stick up shortly after.  Wait a second or two.  MAME should show 2 different keypresses mapped to that function.  Repeat for the other stick directions & buttons.

Now, *both* of the sticks can be used to control the game at any given time.  So, if it's important to you to have each of you stand at your own stick & play when it's your turn, this works.

The catch: now you have to resist messing with each other during their turn, since both sets of controls are always active!

Option 2: go into dip switch settings, switch it to cocktail mode, set up the separate P1 & P2 controls, then force your wife to play the game standing on her head.

-Jason

garnerb350

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 892
  • Last login:May 09, 2019, 09:36:49 pm
  • Crowded elevators smell different to midgets...
    • Hyperspin
Re: MAME - Joystick options?
« Reply #5 on: February 17, 2009, 03:22:33 pm »
LOL....I did Option 1....still didnt work... Option 2...did that also...still have the marks to prove it....
的f first you don't succeed, then skydiving definitely isn't for you..." ~ Jack Handy

severdhed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2975
  • Last login:December 14, 2024, 05:01:52 pm
  • RIP Dinosaur Hippo
Re: MAME - Joystick options?
« Reply #6 on: February 17, 2009, 03:30:09 pm »
Hit Tab to go into MAME's settings, and enter "input for this game" screen.

Go down to P1 up & hit "Enter" to edit the keypress for that switch, then move the P1 stick up & then move the P2 stick up shortly after.  Wait a second or two.  MAME should show 2 different keypresses mapped to that function.  Repeat for the other stick directions & buttons.


-Jason

actually, if you do it this way, it will require you to press both joysticks in that direction at the same time to get it to move.  if you want it to work, do it this way:

go to P1 Up, hit enter, then press joystick 1 up, then hit enter again and press joystick 2 up.  repeat this for each direction.  if done correctly it will show

P1 UP = a or c

or whatever keys you are actually mapped to, that way either one will work..but like he said, then you will be able to mess with the other player
Current Projects:      Zak-Man | TMNT Pedestal | SNES Pi | N64 Odroid
Former Projects:     4 Player Showcase | Donkey Kong | iCade

jasonbar

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2253
  • Last login:July 29, 2025, 09:33:05 pm
  • Dr. Inferno
    • The Infernolab
Re: MAME - Joystick options?
« Reply #7 on: February 17, 2009, 03:47:04 pm »
Absolutely right--thanks for correcting me!  D'oh!

-Jason

garnerb350

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 892
  • Last login:May 09, 2019, 09:36:49 pm
  • Crowded elevators smell different to midgets...
    • Hyperspin
Re: MAME - Joystick options?
« Reply #8 on: February 17, 2009, 03:48:13 pm »
Severhed....that was the first thing I did...still didnt work... I'm thinking its the orginal game setup....or the tankstick screwed me again...( I'm having to give up Maximus arcade because of this) :cry:

The 2nd player controls work like a charm on the games ( I remember growing up as a child ) that had 2 players....its the games I remember in the back of the old pizza places.... Pacman, DK, BT....the old one joystick...that not working for the tankstick...

I'll doublecheck the routine again when I get home, just to make sure....
« Last Edit: February 17, 2009, 03:50:07 pm by garnerb350 »
的f first you don't succeed, then skydiving definitely isn't for you..." ~ Jack Handy

wooowman93

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:September 04, 2014, 03:56:02 pm
Re: MAME - Joystick options?
« Reply #9 on: February 17, 2009, 04:08:54 pm »
All you have to do is go setup the input for this game and when you need to press up move both the joysticks on the cp up and do the same for down, left right.

The only problem with this is that player 2 or 1 can be an idiot and start controlling during your turn.


jardine

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:May 12, 2025, 05:09:12 am
Re: MAME - Joystick options?
« Reply #10 on: February 17, 2009, 05:23:58 pm »
suck it upand use the one controller  :P

nothing better than scrambling to change players, only to slightly delay the swap over and deliberatley stuff the other player up. espically when my wife holds the top score... ;D

garnerb350

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 892
  • Last login:May 09, 2019, 09:36:49 pm
  • Crowded elevators smell different to midgets...
    • Hyperspin
Re: MAME - Joystick options?
« Reply #11 on: February 17, 2009, 10:40:45 pm »
 :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead:

I'm an idiot.....

I wasnt thinking outside the box...I didnt remap the first player...I was too busy trying to remap the 2nd player...You all have permission to slap the living *&^% out of me...man I cant wait to finish this horrible creature...

garnerb350 is a  :censored:

 :laugh2:


 :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead:
的f first you don't succeed, then skydiving definitely isn't for you..." ~ Jack Handy