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: MAME and lightgun games question  (Read 2728 times)

0 Members and 1 Guest are viewing this topic.

reko19

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 218
  • Last login:July 16, 2025, 10:06:10 am
  • I want to build my own arcade controls!
MAME and lightgun games question
« on: May 07, 2008, 11:59:42 am »
I am running MAME123b, on the startup of any lightgun game I have two croshairs on display. If I start 1Pl game, the crosshair for Pl2 remains in the center of the screen until manually moved to the corner of the screen using Pl2 joy. Is there any way to have second crosshair hidden until Pl2 game is started?

As a side note, great to see off-screen reload working. I know some people are having tough time configuring lightguns, i have no problems with dual Actlab setup. I could never figure out how all the options under mame.ini CONTROL section operate. Took some trial and error, is it documented anywhere?

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: MAME and lightgun games question
« Reply #1 on: May 07, 2008, 02:58:46 pm »
...Is there any way to have second crosshair hidden until Pl2 game is started?

No.   :-\   A work around is press F1 a couple times.  Once makes both disappear, second time shows P1, third shows both.  You'd have to do this everytime you start a different game, and whenever you go from one player to two player or vice versa.  IMO, easier/clearer just to manually move P2's to a corner like you already do, as the P2 will naturally move the crosshair back into play when he starts.

Quote
... I could never figure out how all the options under mame.ini CONTROL section operate. Took some trial and error, is it documented anywhere?

Did you check out mame's docs\config.txt file?  (and other txt files?)  Also, I don't have a CONTROLS section in my mame.ini; do you mean the CORE INPUT OPTIONS section? 

There is so more info in the source (src/emu/inptport.c, mostly), but it's mostly on the why things are do the way they're done, rather than how to change the option settings.  (Check MAWS or mamedev.org if you don't want to download the whole source.)
Robin
Knowledge is Power

reko19

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 218
  • Last login:July 16, 2025, 10:06:10 am
  • I want to build my own arcade controls!
Re: MAME and lightgun games question
« Reply #2 on: May 07, 2008, 04:38:47 pm »
Thanks for the reply. I was referring to CORE INPUT OPTIONS and CORE INPUT AUTOMATIC ENABLE OPTIONS. I'll go thru the txt files one more time. So far I was having hard time figuring out certain things. I.e. why lightgun_device should be set to keyboard instead of the mouse, etc. Guess I shouldn't try to fix it if it works.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: MAME and lightgun games question
« Reply #3 on: May 08, 2008, 08:57:27 am »
So far I was having hard time figuring out certain things. I.e. why lightgun_device should be set to keyboard instead of the mouse, etc. Guess I shouldn't try to fix it if it works.

If you enable devices with eg 'lightgun 1', 'mouse 1' etc., then you do not need to set the 'lightgun_device' etc options.

In short, these options are the 'old' way of doing it:

mouse                     0
joystick                  0
lightgun                  0

Setting 'mouse 1' would enable mouse, all the time, for all games.

This is the preferred 'new' method:

paddle_device             joystick
adstick_device            joystick
pedal_device              joystick
dial_device               mouse
trackball_device          mouse
lightgun_device           mouse
positional_device         mouse
mouse_device              mouse

The 'new' method, automatically enables said device for games which require it. eg (using my example above), Mame would enable joysticks for any game with a pedal.

Although the new system is preferred, there are a few flaws. Sometimes it is just easier to use the old method.  One example is that if you want to use a joystick device for a digital input, you can't without using 'joystick 1'.

reko19

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 218
  • Last login:July 16, 2025, 10:06:10 am
  • I want to build my own arcade controls!
Re: MAME and lightgun games question
« Reply #4 on: May 09, 2008, 12:06:18 pm »
Thank you, very helpful as always.