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: Topgun II works in Windows, not in Mame  (Read 1660 times)

0 Members and 1 Guest are viewing this topic.

austin_21b

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 17
  • Last login:April 22, 2009, 09:59:29 pm
Topgun II works in Windows, not in Mame
« on: January 06, 2009, 10:24:46 am »
I am using Mame .128 and Windows Vista Home 32 bit. I installed 2 topgun II's in using the latest EMS driver.
I calibrated them and they both show up as HID mice and control Windows well. I have a mouse and trackball hooked up also. My mame.ini is set to mouse 1; multimouse 1; lightgun 0; lightgun = mouse.

When trying to configure the controls in Mame, the trigger acts as mouse 3 button 1 and mouse 4 button 1 respectively. However, when trying to change the x or y axis controls, mame will not accept my lightgun movement.
If I move the mouse or trackball, it will register that as the new control, but when I move the lightgun nothing happens. I know the gun still works in mame because when I aim it over the menu, I see whatever I am aiming is highlighted, just like moving the mouse over the menu.

Both guns function like mice and register mouse buttons, but I can't get Mame to accept the movement as the controls. I know mame sees them as mice because I can move up and down the menu by aiming them. What is going on?

austin_21b

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 17
  • Last login:April 22, 2009, 09:59:29 pm
Re: Topgun II works in Windows, not in Mame
« Reply #1 on: January 06, 2009, 01:00:53 pm »
I used the -mouse -verbose in the command line and it shows adding 4 mice and 4 guns along with my keyboard using the above settings. I can still use the gun as a mouse to navigate the menu but not to set as controls.

mrserv0n

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:May 25, 2021, 09:20:06 pm
Re: Topgun II works in Windows, not in Mame
« Reply #2 on: January 06, 2009, 08:56:09 pm »
I dont know if it works with vista but smogs driver will work thats what i had to use. ems drivers suck

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Topgun II works in Windows, not in Mame
« Reply #3 on: January 07, 2009, 01:26:46 pm »
...My mame.ini is set to mouse 1; multimouse 1; lightgun 0; lightgun = mouse....

You want either "lightgun 1" or "lightgun lightgun".  If you do the latter, make sure you are playing a game that had a lightgun; games like term2 did not, so mame emulates with the adstick type, so your lightgun will not be enabled.  If that doesn't work, set "mouse 0" (but leave "multimouse 1").

Do not try to map the lightgun to the INC or DEC ports, just the analog one.

If you still have problems, you can try hand editing the cfg file.  Remap the stuff you want the lightgun to do to to a mouse (it's easiest if you map the mouse left button to what you want the trigger to do, the mouse X axis what you want the lightgun x axis to do, etc), and exit mame.  Open the cfg file in any text editor, and look for the stuff remapped to the mouse.  Change the mouse 1 to lightgun 3 or 4, as needed (USE the all caps just like the mouse in the file). 

Again, do not map the lightgun to the INC or DEC ports, just the analog one.
Robin
Knowledge is Power