From 63a2d3125c60ffe4a61fb59fe1140f034d3ad27e Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Mon, 16 Feb 2009 08:39:06 +0000 Subject: [PATCH] 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) --- src/mame/drivers/kaneko16.c | 6 ++++-- 1 file 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 ) )