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

version 1.5, 2004/02/11 17:39:59 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 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;

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


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