Diff for /xmil/keystat.c between versions 1.1 and 1.3

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

Removed from v.1.1  
changed lines
  Added in v.1.3


RetroPC.NET-CVS <cvs@retropc.net>