Previous 15994 Revisions Next

r2991 Tuesday 29th July, 2008 at 12:40:08 UTC by Fabio Priuli
Proper fix for input regressions introduced in rev.2962. Thanks to Arbee for pointing them out in rev.2988
[src/mess/machine]bk.c cybiko.c

src/mess/machine/bk.c
r2990r2991
2323{
2424   UINT8 code, i, j;
2525   static const char *keynames[] = { "LINE1", "LINE2", "LINE3", "LINE4", "LINE5", "LINE6",
26                              "LINE7", "LINE8", "LINE9", "LINE10", "LINE11", "" };
26                              "LINE7", "LINE8", "LINE9", "LINE10", "LINE11" };
2727
2828   for(i = 1; i < 12; i++)
2929   {
30      code =    input_port_read(machine, keynames[i]);
30      code =    input_port_read(machine, keynames[i-1]);
3131      if (code != 0)
3232      {
3333         for(j = 0; j < 8; j++)
src/mess/machine/cybiko.c
r2990r2991
418418{
419419   UINT8 data = 0xFF;
420420   int i;
421   static const char *keynames[] = { "A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "A9", "" };
421   static const char *keynames[] = { "A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "A9" };
422422   
423423   _logerror( 2, ("cybiko_key_r_byte (%08X)\n", offset));
424424   // A11
r2990r2991
428428   for (i=1; i<10; i++)
429429   {
430430      if (!(offset & (1 << i)))
431         data &= input_port_read(machine, keynames[i]);
431         data &= input_port_read(machine, keynames[i-1]);
432432   }
433433   // A0
434434   if (!(offset & (1 <<  0)))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team