summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/astinvad.c
diff options
context:
space:
mode:
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
commit3d8c64b677617ccf46f3a5086aadcdde2345e63b (patch)
tree65b7105ec11a92ead01273da6b01a95aa0ef9228 /src/mame/drivers/astinvad.c
parent4976bd3d8b0437432c648dbccc363b1e62546286 (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/astinvad.c')
-rw-r--r--src/mame/drivers/astinvad.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/astinvad.c b/src/mame/drivers/astinvad.c
index 4cf6a5efd47..07f4e481bb5 100644
--- a/src/mame/drivers/astinvad.c
+++ b/src/mame/drivers/astinvad.c
@@ -68,6 +68,7 @@ public:
DECLARE_WRITE8_MEMBER(kamikaze_ppi_w);
DECLARE_WRITE8_MEMBER(spaceint_sound1_w);
DECLARE_WRITE8_MEMBER(spaceint_sound2_w);
+ DECLARE_INPUT_CHANGED_MEMBER(spaceint_coin_inserted);
};
@@ -277,11 +278,10 @@ static MACHINE_RESET( spaceint )
}
-static INPUT_CHANGED( spaceint_coin_inserted )
+INPUT_CHANGED_MEMBER(astinvad_state::spaceint_coin_inserted)
{
- astinvad_state *state = field.machine().driver_data<astinvad_state>();
/* coin insertion causes an NMI */
- device_set_input_line(state->m_maincpu, INPUT_LINE_NMI, newval ? ASSERT_LINE : CLEAR_LINE);
+ device_set_input_line(m_maincpu, INPUT_LINE_NMI, newval ? ASSERT_LINE : CLEAR_LINE);
}
@@ -528,7 +528,7 @@ static INPUT_PORTS_START( spaceint )
PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) )
PORT_START("IN2")
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_CHANGED(spaceint_coin_inserted, 0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, astinvad_state,spaceint_coin_inserted, 0)
PORT_START("CABINET")
PORT_DIPNAME( 0xff, 0x00, DEF_STR( Cabinet ) )