mirror of
https://github.com/libretro/libretro-o2em.git
synced 2024-11-27 02:10:24 +00:00
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:
parent
d7b343201f
commit
21210eb715
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user