Main > Main Forum
Help needed for two interesting 49-way joystick issues in mame
m_mcgover:
My set up is:
2 49-way Williams sticks controlled by 2 gpwiz-49 controllers. The gpwiz-49s are being used for all joysticks/button encoding. I also have an arcadevga driving a jpac in an arcade cabinet. I have a keyboard currently attached to the pass-through connector on the jpac. I am using Mala as my frontend and using set49way to select a joystick program when launching a game.
Issue#1:
All is fine with the leftmost stick (usb device #1). When I test it in windows, all buttons work, and all directions are correct. The leftmost stick works fine in Mame, too. The rightmost stick (usb device#2) is giving me a problem in every game I've tested in Mame. When I test in Windows, all buttons work, and all directions are correct for joystick#2. However, in Mame, for joystick #2 the up direction registers as down no matter what I do (the other directions are all correct). When I go to program the direction in Mame via the tab key, I will not be able to program it up, despite pushing it in that direction. Instead it will register as down or "down down-left", etc. This is consistant across every game I've tested. At first, I thought it was a joystick hardware problem, but the fact that it seems to work fine in Windows in the control panel, seems to suggest a Mame setup issue?
Issue#2:
I cannot seem to program any directions in Mame for q-bert. I tab to select setup for "this game only" and I select the direction to program via the keyboard. However, neither joystick will register in the programming mode. Furthermore, none of the default directions work either.
Are these issues related? Are they independent? What would cause them?
All help and suggestions are greatly appreciated -- Thanks in advance!
bkenobi:
I've never used an analog joystick, but it should be the same as any other analog device. When you are in a game where the stick is switched, go to the analog settings and check to see that "reverse axis" is set correctly. That should take care of it!
I'm not sure about qbert, but I would guess you need to adjust something in the joystick configuration software GGG provided.
m_mcgover:
Thanks for the reply. I'll take a look at that later today. One thing is that down-left, down, and down-right work (as do right and left), it is that all of my up directions also get mapped to down directions...so I'm curious if there was a reverse axis setting, why both up and downs wouldn't be messed up. I will definitely check it though.
Any other thoughts?
u_rebelscum:
#1 It's not analog reverse in mame; that is for analog games, IOW, it reverses the analog info just before sending it to a game, so only games that expect analog data can be reversed. Games that expect digital data aren't effected.
When you say it works in windows, does all 7 verticla position? (the three up, center and 3 down)
#2 Mame currently has qbert as a 4-way stick. Mame has a default analog-2-digital 9x9 grid map that automatically is applied for 4-way games that disables joystick diagonals. So, instead of using the normal tab remap, the best way to fix it is make mame use a different a2d map. Either create a qbert.ini file with only joystick_map 888856666....5.444452222 in it. More info on joystick_map in mame's docs/config.txt file, but the above creates the following map:
888856666
888856666
888856666
888856666
555555555
444452222
444452222
444452222
444452222
I can go into more detail if you want.
m_mcgover:
--- Quote from: u_rebelscum on August 04, 2009, 02:43:02 pm ---#1 It's not analog reverse in mame; that is for analog games, IOW, it reverses the analog info just before sending it to a game, so only games that expect analog data can be reversed. Games that expect digital data aren't effected.
When you say it works in windows, does all 7 verticla position? (the three up, center and 3 down)
--- End quote ---
I will double check, but yes I believe that all positions work for both sticks properly in Windows XP (under control panel->Game controllers->properties) test. It is only in Mame and it strangely is only Joystick 2 that exhibits this problem.
--- Quote ---#2 Mame currently has qbert as a 4-way stick. Mame has a default analog-2-digital 9x9 grid map that automatically is applied for 4-way games that disables joystick diagonals. So, instead of using the normal tab remap, the best way to fix it is make mame use a different a2d map. Either create a qbert.ini file with only joystick_map 888856666....5.444452222 in it. More info on joystick_map in mame's docs/config.txt file, but the above creates the following map:
888856666
888856666
888856666
888856666
555555555
444452222
444452222
444452222
444452222
I can go into more detail if you want.
--- End quote ---
Yes, more detail would be great. I thought I did not need to do anything special for qbert as there is a diagonal only DRS mode that is available to the 49-way joysticks (and is set correctly as I checked it) by set49way which is called by Mala prior to executing Mame. So, are you saying that I need to do something in mame to disable a built in mame controller map that is fouling up the set49way process?