Update vmachine.c

Change "Clear" key from "END" to "DELETE" and "Reset" back to F5 as in original O2EM.  Now "Clear" key and "Reset" key on keyboard and virtual keyboard work correctly.  Put code in to reset O2 when F5 is pressed.
This commit is contained in:
greenchili2 2023-10-19 08:54:48 -04:00 committed by GitHub
parent d7b343201f
commit 21210eb715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,7 @@ static unsigned int key_map[6][8]= {
RETROK_EQUALS,
RETROK_y,
RETROK_n,
RETROK_END,
RETROK_DELETE,
RETROK_RETURN
}
};
@ -484,8 +484,10 @@ uint8_t read_P2(void)
{
int km = key_map[si][i];
//FIXME
if ( key[km] && (!joykeystab[km]))
so = i ^ 0x07;
if (km > 127 && key[km])
so = i & 0x07;
else if ( key[km] && (!joykeystab[km]))
so = i ^ 0x07;
}
}
if (so != 0xff)