--- xmil/keystat.c 2004/08/01 05:31:29 1.1 +++ xmil/keystat.c 2005/02/04 06:42:07 1.3 @@ -1,5 +1,6 @@ #include "compiler.h" #include "pccore.h" +#include "iocore.h" #include "keystat.h" #include "keystat.tbl" @@ -26,6 +27,7 @@ static void keydown(REG8 key) { keystat.req_int = TRUE; keystat.shift |= 0x40; keystat.lastkey = key; + subcpu_sendkey(); } } @@ -43,6 +45,7 @@ static void keyup(REG8 key) { if (key < 0x70) { keystat.req_int = TRUE; keystat.shift &= ~0x40; + subcpu_sendkey(); } } @@ -59,7 +62,7 @@ UINT keystat_getflag(void) { kf = keyflag[keystat.lastkey]; ks |= (kf & 0x80); // function if (ks & 0x04) { // kana - if (ks & 0x02) { // shift + if (!(ks & 0x02)) { // shift tbl = 4; } else {