summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/liberatr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/liberatr.c')
-rw-r--r--src/mame/drivers/liberatr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/liberatr.c b/src/mame/drivers/liberatr.c
index e1c7c6a4ed0..410a2d19d6c 100644
--- a/src/mame/drivers/liberatr.c
+++ b/src/mame/drivers/liberatr.c
@@ -182,8 +182,8 @@ WRITE8_MEMBER( liberatr_state::trackball_reset_w )
/* input becomes the starting point for the trackball counters */
if (((data ^ m_ctrld) & 0x10) && (data & 0x10))
{
- UINT8 trackball = input_port_read(machine(), "FAKE");
- UINT8 switches = input_port_read(machine(), "IN0");
+ UINT8 trackball = ioport("FAKE")->read();
+ UINT8 switches = ioport("IN0")->read();
m_trackball_offset = ((trackball & 0xf0) - (switches & 0xf0)) | ((trackball - switches) & 0x0f);
}
m_ctrld = data & 0x10;
@@ -195,13 +195,13 @@ READ8_MEMBER( liberatr_state::port0_r )
/* if ctrld is high, the /ld signal on the LS191 is NOT set, meaning that the trackball is counting */
if (m_ctrld)
{
- UINT8 trackball = input_port_read(machine(), "FAKE");
+ UINT8 trackball = ioport("FAKE")->read();
return ((trackball & 0xf0) - (m_trackball_offset & 0xf0)) | ((trackball - m_trackball_offset) & 0x0f);
}
/* otherwise, the LS191 is simply passing through the raw switch inputs */
else
- return input_port_read(machine(), "IN0");
+ return ioport("IN0")->read();
}
@@ -300,7 +300,7 @@ static INPUT_PORTS_START( liberatr )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
- PORT_BIT( 0x80, IP_ACTIVE_HIGH,IPT_VBLANK )
+ PORT_BIT( 0x80, IP_ACTIVE_HIGH,IPT_CUSTOM ) PORT_VBLANK("screen")
PORT_START("DSW1") /* IN2 - Game Option switches DSW @ D4 on PCB */
PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )