diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2012-04-12 09:28:12 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2012-04-12 09:28:12 +0000 |
commit | 3d8c64b677617ccf46f3a5086aadcdde2345e63b (patch) | |
tree | 65b7105ec11a92ead01273da6b01a95aa0ef9228 /src/mame/drivers/brkthru.c | |
parent | 4976bd3d8b0437432c648dbccc363b1e62546286 (diff) |
Convert INPUT_CHANGED to INPUT_CHANGED_MEMBER (no whatsnew)
Also drivers/galaxian.c and video/dkong.c changes for compile
Diffstat (limited to 'src/mame/drivers/brkthru.c')
-rw-r--r-- | src/mame/drivers/brkthru.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mame/drivers/brkthru.c b/src/mame/drivers/brkthru.c index 47722a881dd..fdf772be208 100644 --- a/src/mame/drivers/brkthru.c +++ b/src/mame/drivers/brkthru.c @@ -96,13 +96,12 @@ WRITE8_MEMBER(brkthru_state::brkthru_soundlatch_w) device_set_input_line(m_audiocpu, INPUT_LINE_NMI, PULSE_LINE); } -static INPUT_CHANGED( coin_inserted ) +INPUT_CHANGED_MEMBER(brkthru_state::coin_inserted) { - brkthru_state *state = field.machine().driver_data<brkthru_state>(); /* coin insertion causes an IRQ */ if(oldval) - device_set_input_line(state->m_maincpu, 0, ASSERT_LINE); + device_set_input_line(m_maincpu, 0, ASSERT_LINE); } @@ -227,9 +226,9 @@ static INPUT_PORTS_START( brkthru ) // PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) // PORT_DIPSETTING( 0x00, DEF_STR( On ) ) /* SW2:7,8 ALWAYS OFF according to the manual */ - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_CHANGED(coin_inserted, 0) - PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_CHANGED(coin_inserted, 0) - PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_CHANGED(coin_inserted, 0) + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, brkthru_state,coin_inserted, 0) + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, brkthru_state,coin_inserted, 0) + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, brkthru_state,coin_inserted, 0) INPUT_PORTS_END static INPUT_PORTS_START( brkthruj ) @@ -269,9 +268,9 @@ static INPUT_PORTS_START( darwin ) // PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) // PORT_DIPSETTING( 0x00, DEF_STR( On ) ) /* SW2:5,7,8 ALWAYS OFF according to the manual */ - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_CHANGED(coin_inserted, 0) - PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_CHANGED(coin_inserted, 0) - PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_CHANGED(coin_inserted, 0) + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, brkthru_state,coin_inserted, 0) + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, brkthru_state,coin_inserted, 0) + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, brkthru_state,coin_inserted, 0) INPUT_PORTS_END |