src/mess/machine/pce.c
| r9103 | r9104 | |
| 394 | 394 | |
| 395 | 395 | if (joystick_port_select <= 4) |
| 396 | 396 | { |
| 397 | | if (joy_6b_packet[joystick_port_select]) |
| 398 | | data = ((input_port_read(space->machine, joyname[BIT(joy_type, joystick_port_select)][joystick_port_select]) >> 8) & 0x0f); |
| 399 | | else |
| 397 | if (joy_6b_packet[joystick_port_select]) // directions + III, IV, V, VI |
| 398 | data = ((input_port_read(space->machine, joyname[BIT(joy_type, joystick_port_select)][joystick_port_select]) >> 8) & 0x0f) |
| 399 | | (input_port_read(space->machine, joyname[BIT(joy_type, joystick_port_select)][joystick_port_select]) & 0xf0); |
| 400 | else // directions + I, II, Run, Select |
| 400 | 401 | data = input_port_read(space->machine, joyname[BIT(joy_type, joystick_port_select)][joystick_port_select]); |
| 401 | 402 | } |
| 402 | 403 | else |