Previous 15994 Revisions Next

r15112 Monday 7th May, 2012 at 09:37:46 UTC by Miodrag Milanović
fix for n64 regression (nw)
[src/mame/machine]n64.c

src/mame/machine/n64.c
r15111r15112
17811781            case 1: //p2 inputs
17821782            {
17831783               //printf("Read p%d inputs\n", channel + 1);
1784                    buttons = ioport(portnames[(channel*3) + 0])->read();
1785                    x = ioport(portnames[(channel*3) + 1])->read() - 128;
1786                    y = ioport(portnames[(channel*3) + 2])->read() - 128;
1784                    buttons = machine().root_device().ioport(portnames[(channel*3) + 0])->read();
1785                    x = machine().root_device().ioport(portnames[(channel*3) + 1])->read() - 128;
1786                    y = machine().root_device().ioport(portnames[(channel*3) + 2])->read() - 128;
17871787
17881788               rdata[0] = (buttons >> 8) & 0xff;
17891789               rdata[1] = (buttons >> 0) & 0xff;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team