summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/taito_h.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/taito_h.c')
-rw-r--r--src/mame/drivers/taito_h.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/taito_h.c b/src/mame/drivers/taito_h.c
index e2fdbacc79e..936c8e5fba1 100644
--- a/src/mame/drivers/taito_h.c
+++ b/src/mame/drivers/taito_h.c
@@ -188,37 +188,37 @@ READ8_MEMBER(taitoh_state::syvalion_input_bypass_r)
switch( port )
{
case 0x08: /* trackball y coords bottom 8 bits for 2nd player */
- return input_port_read(machine(), P2TRACKY_PORT_TAG);
+ return ioport(P2TRACKY_PORT_TAG)->read();
case 0x09: /* trackball y coords top 8 bits for 2nd player */
- if (input_port_read(machine(), P2TRACKY_PORT_TAG) & 0x80) /* y- direction (negative value) */
+ if (ioport(P2TRACKY_PORT_TAG)->read() & 0x80) /* y- direction (negative value) */
return 0xff;
else /* y+ direction (positive value) */
return 0x00;
case 0x0a: /* trackball x coords bottom 8 bits for 2nd player */
- return input_port_read(machine(), P2TRACKX_PORT_TAG);
+ return ioport(P2TRACKX_PORT_TAG)->read();
case 0x0b: /* trackball x coords top 8 bits for 2nd player */
- if (input_port_read(machine(), P2TRACKX_PORT_TAG) & 0x80) /* x- direction (negative value) */
+ if (ioport(P2TRACKX_PORT_TAG)->read() & 0x80) /* x- direction (negative value) */
return 0xff;
else /* x+ direction (positive value) */
return 0x00;
case 0x0c: /* trackball y coords bottom 8 bits for 1st player */
- return input_port_read(machine(), P1TRACKY_PORT_TAG);
+ return ioport(P1TRACKY_PORT_TAG)->read();
case 0x0d: /* trackball y coords top 8 bits for 1st player */
- if (input_port_read(machine(), P1TRACKY_PORT_TAG) & 0x80) /* y- direction (negative value) */
+ if (ioport(P1TRACKY_PORT_TAG)->read() & 0x80) /* y- direction (negative value) */
return 0xff;
else /* y+ direction (positive value) */
return 0x00;
case 0x0e: /* trackball x coords bottom 8 bits for 1st player */
- return input_port_read(machine(), P1TRACKX_PORT_TAG);
+ return ioport(P1TRACKX_PORT_TAG)->read();
case 0x0f: /* trackball x coords top 8 bits for 1st player */
- if (input_port_read(machine(), P1TRACKX_PORT_TAG) & 0x80) /* x- direction (negative value) */
+ if (ioport(P1TRACKX_PORT_TAG)->read() & 0x80) /* x- direction (negative value) */
return 0xff;
else /* x+ direction (positive value) */
return 0x00;