src/mame/machine/n64.c
| r15111 | r15112 | |
| 1781 | 1781 | case 1: //p2 inputs |
| 1782 | 1782 | { |
| 1783 | 1783 | //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; |
| 1787 | 1787 | |
| 1788 | 1788 | rdata[0] = (buttons >> 8) & 0xff; |
| 1789 | 1789 | rdata[1] = (buttons >> 0) & 0xff; |