src/emu/sound/sid.c
| r3973 | r3974 | |
| 337 | 337 | break; |
| 338 | 338 | case 0x19: /* paddle 1 */ |
| 339 | 339 | if (This->ad_read != NULL) |
| 340 | | data=This->ad_read (machine, 0); |
| 340 | data=This->ad_read (This->device, 0); |
| 341 | 341 | else |
| 342 | 342 | data=0; |
| 343 | 343 | break; |
| 344 | 344 | case 0x1a: /* paddle 2 */ |
| 345 | 345 | if (This->ad_read != NULL) |
| 346 | | data=This->ad_read (machine, 1); |
| 346 | data=This->ad_read (This->device, 1); |
| 347 | 347 | else |
| 348 | 348 | data=0; |
| 349 | 349 | break; |
src/mess/machine/c64.c
| r3973 | r3974 | |
| 856 | 856 | } |
| 857 | 857 | |
| 858 | 858 | |
| 859 | | int c64_paddle_read (running_machine *machine, int which) |
| 859 | int c64_paddle_read (const device_config *device, int which) |
| 860 | 860 | { |
| 861 | running_machine *machine = device->machine; |
| 861 | 862 | int pot1 = 0xff, pot2 = 0xff, pot3 = 0xff, pot4 = 0xff, temp; |
| 862 | 863 | UINT8 cia0porta = cia_get_output_a(device_list_find_by_tag(machine->config->devicelist, CIA6526R1, "cia_0")); |
| 863 | 864 | int controller1 = input_port_read(machine, "CTRLSEL") & 0x07; |