Diff for /np2/win9x/winkbd.cpp between versions 1.4 and 1.8

version 1.4, 2004/01/15 18:15:30 version 1.8, 2004/04/15 14:44:38
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "np2.h"  #include        "np2.h"
 #include        "winkbd.h"  #include        "winkbd.h"
 #include        "pccore.h"  #include        "keystat.h"
 #include        "iocore.h"  
   
   
 #define         NC              0xff  #define         NC              0xff
   
 static const BYTE key106[256] = {  static UINT8 key106[256] = {
                         //          ,    ,    ,STOP,    ,    ,    ,             ; 0x00                          //          ,    ,    ,STOP,    ,    ,    ,             ; 0x00
                                   NC,  NC,  NC,0x60,  NC,  NC,  NC,  NC,                                    NC,  NC,  NC,0x60,  NC,  NC,  NC,  NC,
                         //        BS, TAB,    ,    , CLR, ENT,    ,             ; 0x08                          //        BS, TAB,    ,    , CLR, ENT,    ,             ; 0x08
Line 73  static const BYTE key106[256] = { Line 72  static const BYTE key106[256] = {
                         //          ,    ,    ,    ,    ,    ,    ,             ; 0xf8                          //          ,    ,    ,    ,    ,    ,    ,             ; 0xf8
                                   NC,  NC,  NC,  NC,  NC,  NC,  NC,  NC};                                    NC,  NC,  NC,  NC,  NC,  NC,  NC,  NC};
   
 static const BYTE key106ext[256] = {  static const UINT8 key106ext[256] = {
                         //          ,    ,    ,STOP,    ,    ,    ,             ; 0x00                          //          ,    ,    ,STOP,    ,    ,    ,             ; 0x00
                                   NC,  NC,  NC,  NC,  NC,  NC,  NC,  NC,                                    NC,  NC,  NC,  NC,  NC,  NC,  NC,  NC,
                         //        BS, TAB,    ,    , CLR, ENT,    ,             ; 0x08                          //        BS, TAB,    ,    , CLR, ENT,    ,             ; 0x08
Line 139  static const BYTE key106ext[256] = { Line 138  static const BYTE key106ext[256] = {
                         //          ,    ,    ,    ,    ,    ,    ,             ; 0xf8                          //          ,    ,    ,    ,    ,    ,    ,             ; 0xf8
                                   NC,  NC,  NC,  NC,  NC,  NC,  NC,  NC};                                    NC,  NC,  NC,  NC,  NC,  NC,  NC,  NC};
   
 static const BYTE f12keys[] = {  static const UINT8 f12keys[] = {
                         0x61, 0x60, 0x4d, 0x4f};                          0x61, 0x60, 0x4d, 0x4f, 0x76, 0x77};
   
   
 static BYTE getf12key(void) {  static BYTE getf12key(void) {
Line 148  static BYTE getf12key(void) { Line 147  static BYTE getf12key(void) {
         UINT    key;          UINT    key;
   
         key = np2oscfg.F12COPY - 1;          key = np2oscfg.F12COPY - 1;
         if (key < (sizeof(f12keys)/sizeof(BYTE))) {          if (key < (sizeof(f12keys)/sizeof(UINT8))) {
                 return(f12keys[key]);                  return(f12keys[key]);
         }          }
         else {          else {
Line 220  void winkbd_keyup(WPARAM wParam, LPARAM  Line 219  void winkbd_keyup(WPARAM wParam, LPARAM 
         }          }
 }  }
   
   void winkbd_roll(BOOL pcat) {
   
           if (pcat) {
                   key106[0x21] = 0x36;
                   key106[0x22] = 0x37;
           }
           else {
                   key106[0x21] = 0x37;
                   key106[0x22] = 0x36;
           }
   }
   
   void winkbd_setf12(UINT f12key) {
   
           UINT8   key;
   
           f12key--;
           if (f12key < (sizeof(f12keys)/sizeof(UINT8))) {
                   key = f12keys[f12key];
           }
           else {
                   key = NC;
           }
           key106[0x7b] = key;
   }
   
 void winkbd_resetf12(void) {  void winkbd_resetf12(void) {
   
         UINT    i;          UINT    i;
   
         for (i=0; i<(sizeof(f12keys)/sizeof(BYTE)); i++) {          for (i=0; i<(sizeof(f12keys)/sizeof(UINT8)); i++) {
                 keystat_forcerelease(f12keys[i]);                  keystat_forcerelease(f12keys[i]);
         }          }
 }  }

Removed from v.1.4  
changed lines
  Added in v.1.8


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