src/mess/machine/ti99/handset.c
| r15110 | r15111 | |
| 132 | 132 | int i; |
| 133 | 133 | |
| 134 | 134 | /* read current key state */ |
| 135 | | key_buf = (ioport(keynames[num])->read() | (ioport(keynames[num + 1])->read() << 16) ) >> (4*num); |
| 135 | key_buf = (machine().root_device().ioport(keynames[num])->read() | (machine().root_device().ioport(keynames[num + 1])->read() << 16) ) >> (4*num); |
| 136 | 136 | |
| 137 | 137 | // If a key was previously pressed, this key was not shift, and this key is |
| 138 | 138 | // still down, then don't change the current key press. |
| r15110 | r15111 | |
| 203 | 203 | int current_joy_x, current_joy_y; |
| 204 | 204 | int message; |
| 205 | 205 | /* read joystick position */ |
| 206 | | current_joy_x = ioport(joynames[0][num])->read(); |
| 207 | | current_joy_y = ioport(joynames[1][num])->read(); |
| 206 | current_joy_x = machine().root_device().ioport(joynames[0][num])->read(); |
| 207 | current_joy_y = machine().root_device().ioport(joynames[1][num])->read(); |
| 208 | 208 | |
| 209 | 209 | /* compare with last saved position */ |
| 210 | 210 | current_joy = current_joy_x | (current_joy_y << 4); |