summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-02-16 08:39:06 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-02-16 08:39:06 +0000
commit63a2d3125c60ffe4a61fb59fe1140f034d3ad27e (patch)
treeaf095df00ad796aa0d6fe43a19bc7c31da5baaa6
parent6fc10ff55369f23ba79f93425b38a66c38a6131c (diff)
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)
-rw-r--r--src/mame/drivers/kaneko16.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/kaneko16.c b/src/mame/drivers/kaneko16.c
index 13f0b1da660..60b6eb82bd0 100644
--- a/src/mame/drivers/kaneko16.c
+++ b/src/mame/drivers/kaneko16.c
@@ -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 ) )