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: Joystick and Trackball Mame Problem  (Read 13183 times)

0 Members and 1 Guest are viewing this topic.

Brewser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:August 10, 2006, 02:01:48 pm
  • Fighting the forces of evil since 1978
Joystick and Trackball Mame Problem
« 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

Brewser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:August 10, 2006, 02:01:48 pm
  • Fighting the forces of evil since 1978
Re: Joystick and Trackball Mame Problem
« Reply #1 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?

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Joystick and Trackball Mame Problem
« Reply #2 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).

Brewser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:August 10, 2006, 02:01:48 pm
  • Fighting the forces of evil since 1978
Re: Joystick and Trackball Mame Problem
« Reply #3 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.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Joystick and Trackball Mame Problem
« Reply #4 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.

Brewser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:August 10, 2006, 02:01:48 pm
  • Fighting the forces of evil since 1978
Re: Joystick and Trackball Mame Problem
« Reply #5 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.

Brewser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:August 10, 2006, 02:01:48 pm
  • Fighting the forces of evil since 1978
Re: Joystick and Trackball Mame Problem
« Reply #6 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.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 12:27:54 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Joystick and Trackball Mame Problem
« Reply #7 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.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Joystick and Trackball Mame Problem
« Reply #8 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 :)

Popcorrin

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:March 06, 2022, 11:11:43 am
Re: Joystick and Trackball Mame Problem
« Reply #9 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.