summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/magtouch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/magtouch.c')
-rw-r--r--src/mame/drivers/magtouch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/magtouch.c b/src/mame/drivers/magtouch.c
index db4c2fd4aff..395d64987ce 100644
--- a/src/mame/drivers/magtouch.c
+++ b/src/mame/drivers/magtouch.c
@@ -147,7 +147,7 @@ READ8_MEMBER(magtouch_state::magtouch_io_r)
switch(offset)
{
case 1:
- return input_port_read(machine(), "IN0");
+ return ioport("IN0")->read();
default:
return 0;
}