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: Mala thinks joystick 2 is joystick 1?  (Read 3484 times)

0 Members and 1 Guest are viewing this topic.

arzoo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2093
  • Last login:January 26, 2025, 08:51:53 am
  • Robots WILL kill you.
    • LEDBlinky
Mala thinks joystick 2 is joystick 1?
« on: January 24, 2009, 10:06:32 pm »
I recently built a new mame rig and moved my mala folder from the old pc to the new pc. My cp has two u360's. When I check them from XP's game controllers dialog, the stick ID's are correct. From mame, joy1 and joy2 are also correct. But for some reason, MaLa thinks that joy2 is joy1 and I can't seem to switch them - so basically, the wrong stick scrolls the game lists. Any idea how to resolve this? Thanks!
Robots will kill you.



Arcade Addiction

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Mala thinks joystick 2 is joystick 1?
« Reply #1 on: January 25, 2009, 01:41:26 am »
I am sure we have seen this before.

I did a quick search and found nothing so far.

I think the remedy was to use a 3rd part tool to map what joystick went to a certain joystick id in windows...

arzoo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2093
  • Last login:January 26, 2025, 08:51:53 am
  • Robots WILL kill you.
    • LEDBlinky
Re: Mala thinks joystick 2 is joystick 1?
« Reply #2 on: January 25, 2009, 10:15:32 am »
I am sure we have seen this before.

I did a quick search and found nothing so far.

I think the remedy was to use a 3rd part tool to map what joystick went to a certain joystick id in windows...
Yup - you can change the IDs using Ultramap, and that's the first thing I did - but then mame had them reversed. I ended up configuring MaLa to use both sticks which allows me to use the correct stick on my cp, but I would still like to know what the problem is. I'm guessing it has something to do with the fact that I copied the mala folder from one pc to another, but that implies that mala had somehow cached or stored the stick ids. I think I'll install a fresh copy of MaLa into a new folder and see which stick it thinks is id1. I'll let you know what happens.
Robots will kill you.



Arcade Addiction

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Mala thinks joystick 2 is joystick 1?
« Reply #3 on: January 25, 2009, 01:08:29 pm »
I am sure we have seen this before.

I did a quick search and found nothing so far.

I think the remedy was to use a 3rd part tool to map what joystick went to a certain joystick id in windows...
Yup - you can change the IDs using Ultramap, and that's the first thing I did - but then mame had them reversed. I ended up configuring MaLa to use both sticks which allows me to use the correct stick on my cp, but I would still like to know what the problem is. I'm guessing it has something to do with the fact that I copied the mala folder from one pc to another, but that implies that mala had somehow cached or stored the stick ids. I think I'll install a fresh copy of MaLa into a new folder and see which stick it thinks is id1. I'll let you know what happens.

Yeah please do.

Not sure what file MaLa saves that type of info, I will need to check the code.

system01

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 283
  • Last login:March 04, 2023, 08:06:55 pm
  • System Idle Processes are the Devil's Playthings
Re: Mala thinks joystick 2 is joystick 1?
« Reply #4 on: January 25, 2009, 03:09:55 pm »
What happens if you unplug all but player 1?  Does it still think its P2?

I had this problem once and it was that (Mala isn't in front of me) autodetect joy1 screen... the tab where you define where p1 sits relative to the monitor.  p1 wouldn't autodetect for me and always give p2 control.

arzoo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2093
  • Last login:January 26, 2025, 08:51:53 am
  • Robots WILL kill you.
    • LEDBlinky
Re: Mala thinks joystick 2 is joystick 1?
« Reply #5 on: January 26, 2009, 08:31:29 am »
What happens if you unplug all but player 1?  Does it still think its P2?

I had this problem once and it was that (Mala isn't in front of me) autodetect joy1 screen... the tab where you define where p1 sits relative to the monitor.  p1 wouldn't autodetect for me and always give p2 control.
With the second u360 (id#2) unplugged, mala does not have any joystick control - so it won't use id#1.  :(
Robots will kill you.



Arcade Addiction

csa3d

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 872
  • Last login:March 07, 2011, 08:16:35 am
  • Will game for food
    • Galaxian Mame Conversion
Re: Mala thinks joystick 2 is joystick 1?
« Reply #6 on: January 26, 2009, 09:54:01 am »
What happens if you unplug all but player 1?  Does it still think its P2?

I had this problem once and it was that (Mala isn't in front of me) autodetect joy1 screen... the tab where you define where p1 sits relative to the monitor.  p1 wouldn't autodetect for me and always give p2 control.
With the second u360 (id#2) unplugged, mala does not have any joystick control - so it won't use id#1.  :(

See if this helps you.  It took me a bit to figure out how to get both u360s to work.

Quote
You need to enable the second joystick by checking the checkbox in the joystick controller panel.  Set the joystick to Set 1, and only set the shortcuts you want to use for the left joystick (joy1).  Be certain you only use j1up, j1down, j1left, j1right in this dialog.  Delete any key references to j2.  Now set the joystick to Set 2 using the dropdown, and assume this is for the right stick (joy2).  Instinct will have you wanting to set shortcuts for this stick using j2up, j2down, etc.. but THIS IS WRONG!  You instead, STILL WANT TO USE j1up, j1down, j1left, and j1right.  Again, remove any references to j2 anything in the shortcut dialog.

I don't *think* you need to set anything in the cocktail dialog, but to be safe, I set the bottom joystick definition to be Set1.
-csa