Previous 15994 Revisions Next

r7469 Sunday 28th February, 2010 at 11:18:32 UTC by Barry Rodewald
[FMTOWNS] Fixed non-working joystick in some games.
[src/mess/drivers]fmtowns.c

src/mess/drivers/fmtowns.c
r7468r7469
757757   if(towns_pad_mask & 0x10)
758758      ret |= (input_port_read(space->machine,"joy1") & 0x3f) | 0x00000040;
759759   else
760      ret |= 0x0000003f;
760      ret |= (input_port_read(space->machine,"joy1") & 0x0f) | 0x00000030;
761761
762762   if(towns_pad_mask & 0x20)
763763      ret |= ((input_port_read(space->machine,"joy2") & 0x3f) << 16) | 0x00400000;
764764   else
765      ret |= 0x003f0000;
765      ret |= ((input_port_read(space->machine,"joy2") & 0x0f) << 16) | 0x00300000;
766766
767767   if(extra1 & 0x01) // Run button = left+right
768768      ret &= ~0x0000000c;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team