Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Brewser on July 03, 2005, 02:26:17 am

Title: Joystick and Trackball Mame Problem
Post by: Brewser on July 03, 2005, 02:26:17 am
I setup Mame with at analog joystick and trackball. All the trackball games now have problems since I enabled joystick. The curser moves all over the place in games such as missle command and golden tee. If I disable joystick then everything is fine, but I need to keep joystick enabled for games that do require a joystick.
What mame setting am I missing?
Thanks for your help
Title: Re: Joystick and Trackball Mame Problem
Post by: Brewser on July 03, 2005, 11:10:51 am
I tried this on Mame32 on my other computer as well and when both joystick and mouse are selected, the curser bounces all over the place in trackball games. If I uncheck joystick then they play fine.
In Mame32 I can select controls for each game individually under properties for the game, but I can't seem to find where these settings are in Windows command line Mame.
Any thoughts?
Title: Re: Joystick and Trackball Mame Problem
Post by: Minwah on July 03, 2005, 06:37:12 pm
In Mame32 I can select controls for each game individually under properties for the game, but I can't seem to find where these settings are in Windows command line Mame.

You need to use game-specific ini files.  Eg you could set 'trackball 1' and 'joystick 0' in mame.ini, and then set 'joystick 1' (& maybe 'trackball 0') in joystick games (eg roadrunn.ini).
Title: Re: Joystick and Trackball Mame Problem
Post by: Brewser on July 03, 2005, 08:40:56 pm
Thanks for the tip. Mame 32 is a lot easier to setup the INI files than Mame. I actually went into Mame32 and setup the games that use trackball and removed the joystick. It is a pain and I was hoping for an easier solution.
Thanks again.
Title: Re: Joystick and Trackball Mame Problem
Post by: Minwah on July 04, 2005, 06:56:42 am
You could always use the new(ish) _device options in mame.ini...something like:

trackball_device mouse
adstick_device joystick

I haven't messed about with stuff for a while, but IIRC this should only enable those devices when neccessary, ie mouse will be enabled for trackball games, and joystick enabled for analog stick games.

Sorry, I'd forgot about that previously.
Title: Re: Joystick and Trackball Mame Problem
Post by: Brewser on July 04, 2005, 12:23:18 pm
I do have mame.ini setup that way, but once you put a '1' in for joystick it still messes up the games that use trackball. If I leave the joystick at 0 then the 49-way sticks won't work on any of the games.
Maybe I am missing something. It seems the only way around this is to make individual INI's for each game and say joystick 0, but that is very time consuming. I was hoping for an easy global setting.
Title: Re: Joystick and Trackball Mame Problem
Post by: Brewser on July 04, 2005, 02:01:05 pm
I have been playing around and I think I have figured it out. For trackball games you would put in:
trackball -[no]joystick in the Mame.INI file.
I deleted my individual INI files for each game and it seems to be working.
Title: Re: Joystick and Trackball Mame Problem
Post by: Howard_Casto on July 05, 2005, 06:12:56 pm
You could always use the new(ish) _device options in mame.ini...something like:

trackball_device mouse
adstick_device joystick

I haven't messed about with stuff for a while, but IIRC this should only enable those devices when neccessary, ie mouse will be enabled for trackball games, and joystick enabled for analog stick games.

Sorry, I'd forgot about that previously.

This is the only proper way to do it, period.  The other ways were always a cheap hack, but we used them because that's all we had.  The only reason the old -mouse -joystick tags are still in mame are for debuggng reasons.
Title: Re: Joystick and Trackball Mame Problem
Post by: Minwah on July 05, 2005, 08:06:32 pm
This is the only proper way to do it, period.  The other ways were always a cheap hack, but we used them because that's all we had.  The only reason the old -mouse -joystick tags are still in mame are for debuggng reasons.

I know I shouldn't say it but I still use the old method for the most part, and explicitly define all inputs in my ctrlr file.  There are flaws in the _device way of doing things.  From memory I couldn't find a way to map an analog PC stick to a digital joystick input in MAME, without using 'joystick 1', as there is no 'digitaljoystick_device' setting in mame.ini.

We discussed it here at the time and I spent a lot of time on it, but to no avail...so I just leave 'joystick 1' in there all the time - it works great :)
Title: Re: Joystick and Trackball Mame Problem
Post by: Popcorrin on August 07, 2005, 05:03:48 pm
I have noticed the same problem that Brewser described about the cursor jumping all over the place on trackball games.
The problem I have run into though with disabling the joystick for trackball games is that since I have only one trackball/mouse button I can not play games like missile command that require 3 buttons.  This is because I am using the 49 way encoder and all the buttons on the panel are recognized as gamepad buttons and will not work without the joystick enabled.
One weird thing that I have noticed though is if you have both the trackball and joystick enabled on a trackball game that if you wait a couple of minutes the cursor bouncing stops and the game plays fine.  Not sure what to make of it.