Previous 15994 Revisions Next

r9104 Sunday 12th September, 2010 at 11:07:43 UTC by Fabio Priuli
[PCE] Hopefully fixed direction reading for 6-buttons joypad
[src/mess/machine]pce.c

src/mess/machine/pce.c
r9103r9104
394394
395395   if (joystick_port_select <= 4)
396396   {
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
400401         data = input_port_read(space->machine, joyname[BIT(joy_type, joystick_port_select)][joystick_port_select]);
401402   }
402403   else

Previous 15994 Revisions Next


© 1998-2018 The MESS Team