mirror of
https://github.com/holub/mame
synced 2025-05-25 07:15:25 +03:00
From: Robin Merrill [mailto:urebel@usa.net]
Sent: Thursday, January 29, 2009 4:24 PM To: submit@mamedev.org Subject: Small patch for a contional dipswitch Moved source comments of conditional dipswitch names into PORT_CONDITION marcos for better documentation. uRebelScum Robin Merrill (urebel@usa.net)
This commit is contained in:
parent
6fc10ff553
commit
63a2d3125c
@ -1290,8 +1290,10 @@ static INPUT_PORTS_START( gtmr )
|
||||
PORT_DIPSETTING( 0x0800, DEF_STR( Joystick ) )
|
||||
PORT_DIPSETTING( 0x0000, "Wheel" )
|
||||
PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Controls ) ) PORT_DIPLOCATION("SW1:5")
|
||||
PORT_DIPSETTING( 0x1000, "1P Side" ) /* 360 degree wheel if SW1:4 set to wheel */
|
||||
PORT_DIPSETTING( 0x0000, "Both Sides" ) /* 270 degree wheel if SW1:4 set to wheel */
|
||||
PORT_DIPSETTING( 0x1000, "1P Side" ) PORT_CONDITION("DSW1",0x0800,PORTCOND_NOTEQUALS,0x00)
|
||||
PORT_DIPSETTING( 0x0000, "Both Sides" ) PORT_CONDITION("DSW1",0x0800,PORTCOND_NOTEQUALS,0x00)
|
||||
PORT_DIPSETTING( 0x1000, "360 degree wheel" ) PORT_CONDITION("DSW1",0x0800,PORTCOND_EQUALS,0x00)
|
||||
PORT_DIPSETTING( 0x0000, "270 degree wheel" ) PORT_CONDITION("DSW1",0x0800,PORTCOND_EQUALS,0x00)
|
||||
PORT_DIPNAME( 0x2000, 0x2000, "Use Brake" ) PORT_DIPLOCATION("SW1:6") /* Valid only when joystick is used */
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x2000, DEF_STR( On ) )
|
||||
|
Loading…
Reference in New Issue
Block a user