From 7c7a2374dabc776e28f7998678ded04a890d5eab Mon Sep 17 00:00:00 2001 From: angelosa Date: Sat, 9 Sep 2017 07:55:54 +0200 Subject: [PATCH] mazerbla.cpp: input cleanups (nw) --- src/devices/video/mb_vcu.cpp | 2 +- src/mame/drivers/mazerbla.cpp | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/devices/video/mb_vcu.cpp b/src/devices/video/mb_vcu.cpp index eb14a1df884..8cfc556521f 100644 --- a/src/devices/video/mb_vcu.cpp +++ b/src/devices/video/mb_vcu.cpp @@ -365,7 +365,7 @@ READ8_MEMBER( mb_vcu_device::load_gfx ) pen = m_color2 >> 4; break; } - + if(pen != 0xf || opaque_pen) write_byte(dstx|dsty<<8|cur_layer<<16|m_vbank<<18, pen); } diff --git a/src/mame/drivers/mazerbla.cpp b/src/mame/drivers/mazerbla.cpp index 553bbacbf28..3c304c2e0d8 100644 --- a/src/mame/drivers/mazerbla.cpp +++ b/src/mame/drivers/mazerbla.cpp @@ -672,20 +672,21 @@ static INPUT_PORTS_START( mazerbla ) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 ) PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) - PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) - PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_START("STICK0_X") /* Strobe 6: horizontal movement of gun */ PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(25) PORT_KEYDELTA(7) PORT_REVERSE PORT_PLAYER(1) + PORT_START("STICK0_Y") /* Strobe 7: vertical movement of gun */ PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(25) PORT_KEYDELTA(7) PORT_PLAYER(1) - /* Mazer Blazer cabinet has only one gun, really */ PORT_START("STICK1_X") /* Strobe 8: horizontal movement of gun */ - PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(25) PORT_KEYDELTA(7) PORT_REVERSE PORT_PLAYER(2) + PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_START("STICK1_Y") /* Strobe 9: vertical movement of gun */ - PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(25) PORT_KEYDELTA(7) PORT_PLAYER(2) + PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_START("UNUSED") PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )