diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2019-09-14 15:27:30 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2019-09-14 15:37:04 -0400 |
commit | 6fab7692981d7956fe400995e4774c9d007b215f (patch) | |
tree | 33db51072448e42875ab5874549ca538a9add521 /src/mame/drivers/deco_ld.cpp | |
parent | 2f39181ac1e093b42a6ff17b49013cfadb02e7a9 (diff) |
PORT_CUSTOM simplification (nw)
- Remove both arguments from CUSTOM_INPUT_MEMBER (adding template parameters as necessary)
- Remove 'param' from PORT_CUSTOM_MEMBER and assume 'device' is DEVICE_SELF (use PORT_CUSTOM_DEVICE_MEMBER if it isn't)
- Replace PORT_CUSTOM_MEMBER with PORT_READ_LINE_MEMBER where applicable
Add implicit DEVICE_SELF variants of PORT_READ_LINE_DEVICE_MEMBER and PORT_WRITE_LINE_DEVICE_MEMBER (nw)
Remove ioport_field argument from PORT_CROSSHAIR_MAPPER (nw)
captflag, gmgalax: Separate driver classes from base (nw)
Diffstat (limited to 'src/mame/drivers/deco_ld.cpp')
-rw-r--r-- | src/mame/drivers/deco_ld.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/deco_ld.cpp b/src/mame/drivers/deco_ld.cpp index 553b43ece79..f8adb56d08d 100644 --- a/src/mame/drivers/deco_ld.cpp +++ b/src/mame/drivers/deco_ld.cpp @@ -140,7 +140,7 @@ public: void rblaster(machine_config &config); - DECLARE_CUSTOM_INPUT_MEMBER(begas_vblank_r); + DECLARE_READ_LINE_MEMBER(begas_vblank_r); DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); private: @@ -318,7 +318,7 @@ void deco_ld_state::rblaster_sound_map(address_map &map) map(0xe000, 0xffff).rom(); } -CUSTOM_INPUT_MEMBER( deco_ld_state::begas_vblank_r ) +READ_LINE_MEMBER( deco_ld_state::begas_vblank_r ) { return m_screen->vpos() >= 240*2; } @@ -361,7 +361,7 @@ static INPUT_PORTS_START( begas ) PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) PORT_DIPSETTING( 0x00, DEF_STR( On ) ) - PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF,deco_ld_state,begas_vblank_r, nullptr) // TODO: IPT_VBLANK doesn't seem to work fine? + PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_READ_LINE_MEMBER(deco_ld_state, begas_vblank_r) // TODO: IPT_VBLANK doesn't seem to work fine? PORT_START("DSW1") PORT_DIPNAME( 0x01, 0x01, "DSWA" ) |