MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

krystofio
MAME Fan
Reged: 06/10/16
Posts: 2
Send PM
Exposing MAME Dipswitches for Atari 2600 (and possibly others) for key binding
06/10/16 11:13 PM


I ask this because I've two spinners I want to use against Atari 2600 roms. That means Stella won't really work for me since it just sees one 'mouse'.

So MAME has multi mouse support, okay, I can try that...

Unfortunately, a nice thing about Stella is that you can switch difficulty A/B, Color/BW switches with keys I can map to buttons.

It seems like with MESS being integrated into MAME, that capability isn't 'exposed' as it was, it's in the 'Dip Switches' menu in MAME.

I'd really like to map toggles of the three classic 2600 switches (2 diffs, one color/bw) to keys, and I'm struggling to find out how to do that, even with cfg or controller files.

I can see it in the source code of a2600.cpp:

PORT_DIPNAME( 0x08, 0x08, "TV Type" )
PORT_CODE(KEYCODE_C) PORT_TOGGLE
PORT_DIPSETTING( 0x08, "Color" )
PORT_DIPSETTING( 0x00, "B&W" )
PORT_BIT ( 0x10, IP_ACTIVE_LOW, IPT_UNUSED )

To be clear, I can see that change in the atari2600.cfg file, but I want to be able to expose the b/w and 2 atari difficulty switches as key bindings so I can use a single arcade button to toggle b/w and color.

I can't seem to see where that is, as the 'controls for this machine' in MAME only shows the joystick movements, select, and start game controls. The B/W, Difficulty A and Difficulty B switches are under MAME's 'DipSwitches' menu.

Was support for this as it stands 'dropped' when mess integrated with mame? I'm relatively new to the emulation scene since around summer of last year, so I'm still learning but don't have a good track of MAME/MESS history over the years.

Thanks for any assistance or reference. I've found so little on the topic I'm at my wit's end. I may have to use Stella for games that need the switches more easily used (like Starmaster), and only use MAME for specific multi-mouse (i.e. spinner/paddle) games instead. I'd love to be able to keep it all under one emulator though, hence the post.

Thanks for your time.







Entire thread
Subject Posted by Posted on
* Exposing MAME Dipswitches for Atari 2600 (and possibly others) for key binding krystofio 06/10/16 11:13 PM
. * Re: Exposing MAME Dipswitches for Atari 2600 (and possibly others) for key binding krystofio  06/11/16 02:11 AM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 493 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1372