summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/r2dtank.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-04-09 11:58:25 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-04-09 11:58:25 +0000
commit38fd06415152ad47c1e74425cd3609552bd240f0 (patch)
tree3047e67a175a7cdc06bdda5372499b6224aab989 /src/mame/drivers/r2dtank.c
parent0aca27ceef7dc7d9136da9319737efb48e505205 (diff)
modernization of some CUSTOM_INPUT's (no whatsnew)
Diffstat (limited to 'src/mame/drivers/r2dtank.c')
-rw-r--r--src/mame/drivers/r2dtank.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/r2dtank.c b/src/mame/drivers/r2dtank.c
index 9c6a70d32ce..a6c685cea52 100644
--- a/src/mame/drivers/r2dtank.c
+++ b/src/mame/drivers/r2dtank.c
@@ -65,6 +65,7 @@ public:
DECLARE_WRITE8_MEMBER(audio_command_w);
DECLARE_READ8_MEMBER(audio_answer_r);
DECLARE_WRITE8_MEMBER(audio_answer_w);
+ DECLARE_CUSTOM_INPUT_MEMBER(get_ttl74123_output);
};
@@ -230,10 +231,9 @@ static WRITE8_DEVICE_HANDLER( ttl74123_output_changed )
}
-static CUSTOM_INPUT( get_ttl74123_output )
+CUSTOM_INPUT_MEMBER(r2dtank_state::get_ttl74123_output)
{
- r2dtank_state *state = field.machine().driver_data<r2dtank_state>();
- return state->m_ttl74123_output;
+ return m_ttl74123_output;
}
@@ -453,7 +453,7 @@ static INPUT_PORTS_START( r2dtank )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
- PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_ttl74123_output, NULL)
+ PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, r2dtank_state,get_ttl74123_output, NULL)
PORT_START("IN1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL