Previous 15994 Revisions Next

r2731 Saturday 24th May, 2008 at 18:34:30 UTC by Roberto Zandonà
[AMIGA] fix for amiga keyboard (bug #1590)
[docs]messnew.txt
[src/mess/machine]amigakbd.c

src/mess/machine/amigakbd.c
r2730r2731
5858static INPUT_CHANGED( kbd_update )
5959{
6060   int   index = *( (int*)(param) ), i;
61   UINT32   delta = oldval ^ newval;
61   UINT32   oldvalue = oldval * field->mask, newvalue = newval * field->mask;
62   UINT32   delta = oldvalue ^ newvalue;
6263
6364   /* Special case Page UP, which we will use as Action Replay button */
64   if ( (index == 3) && ( delta & 0x80000000 ) && ( newval & 0x80000000 ) )
65   if ( (index == 3) && ( delta & 0x80000000 ) && ( newvalue & 0x80000000 ) )
6566   {
6667      const amiga_machine_interface *amiga_intf = amiga_get_interface();
6768
r2730r2731
7879      {
7980         if ( delta & ( 1 << i ) )
8081         {
81            int down = ( newval & ( 1 << i ) ) ? 0 : 1;
82            int down = ( newvalue & ( 1 << i ) ) ? 0 : 1;
8283            int scancode = ( ( (index*32)+i ) << 1 ) | down;
8384            int amigacode = ~scancode;
8485
docs/messnew.txt
r2730r2731
88
99System Driver Changes:
1010----------------------
11- [AMIGA] Partial keyboard fix. [Roberto Zandonà]
11- [AMIGA] Fixed Keyboard. (bug #1590) [Roberto Zandonà]
1212
1313- [AMIGACD / AMIGAFDC] Fixed a couple of regressions introduced in 0.125.
1414  Still CDTV regression is not fixed. [Fabio Priuli]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team