--- np2/win9x/winkbd.cpp 2004/01/15 18:15:30 1.4 +++ np2/win9x/winkbd.cpp 2004/04/14 20:39:12 1.7 @@ -1,13 +1,12 @@ #include "compiler.h" #include "np2.h" #include "winkbd.h" -#include "pccore.h" -#include "iocore.h" +#include "keystat.h" #define NC 0xff -static const BYTE key106[256] = { +static const UINT8 key106[256] = { // , , ,STOP, , , , ; 0x00 NC, NC, NC,0x60, NC, NC, NC, NC, // BS, TAB, , , CLR, ENT, , ; 0x08 @@ -73,7 +72,7 @@ static const BYTE key106[256] = { // , , , , , , , ; 0xf8 NC, NC, NC, NC, NC, NC, NC, NC}; -static const BYTE key106ext[256] = { +static const UINT8 key106ext[256] = { // , , ,STOP, , , , ; 0x00 NC, NC, NC, NC, NC, NC, NC, NC, // BS, TAB, , , CLR, ENT, , ; 0x08 @@ -139,8 +138,8 @@ static const BYTE key106ext[256] = { // , , , , , , , ; 0xf8 NC, NC, NC, NC, NC, NC, NC, NC}; -static const BYTE f12keys[] = { - 0x61, 0x60, 0x4d, 0x4f}; +static const UINT8 f12keys[] = { + 0x61, 0x60, 0x4d, 0x4f, 0x76, 0x77}; static BYTE getf12key(void) { @@ -148,7 +147,7 @@ static BYTE getf12key(void) { UINT key; key = np2oscfg.F12COPY - 1; - if (key < (sizeof(f12keys)/sizeof(BYTE))) { + if (key < (sizeof(f12keys)/sizeof(UINT8))) { return(f12keys[key]); } else { @@ -224,7 +223,7 @@ void winkbd_resetf12(void) { UINT i; - for (i=0; i<(sizeof(f12keys)/sizeof(BYTE)); i++) { + for (i=0; i<(sizeof(f12keys)/sizeof(UINT8)); i++) { keystat_forcerelease(f12keys[i]); } }