|
|
| version 1.4, 2004/02/18 03:24:49 | version 1.5, 2004/06/21 03:18:04 |
|---|---|
| Line 10 | Line 10 |
| #define NC 0xff | #define NC 0xff |
| #if defined(WIN32_PLATFORM_PSPC) | #if defined(WIN32_PLATFORM_PSPC) |
| static BYTE key106[256] = | static UINT8 key106[256] = |
| #else | #else |
| static const BYTE key106[256] = | static const UINT8 key106[256] = |
| #endif | #endif |
| // , , ,STOP, , , , ; 0x00 | // , , ,STOP, , , , ; 0x00 |
| { NC, NC, NC,0x60, NC, NC, NC, NC, | { NC, NC, NC,0x60, NC, NC, NC, NC, |
| Line 80 static const BYTE key106[256] = | Line 80 static const BYTE key106[256] = |
| NC, NC, NC, NC, NC, NC, NC, NC}; | NC, NC, NC, NC, NC, NC, NC, NC}; |
| #if defined(WIN32_PLATFORM_PSPC) | #if defined(WIN32_PLATFORM_PSPC) |
| static BYTE key106ext[256] = | static UINT8 key106ext[256] = |
| #else | #else |
| static const BYTE key106ext[256] = | static const UINT8 key106ext[256] = |
| #endif | #endif |
| // , , ,STOP, , , , ; 0x00 | // , , ,STOP, , , , ; 0x00 |
| { NC, NC, NC, NC, NC, NC, NC, NC, | { NC, NC, NC, NC, NC, NC, NC, NC, |
| Line 149 static const BYTE key106ext[256] = | Line 149 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}; |
| static BYTE getf12key(void) { | static UINT8 getf12key(void) { |
| UINT key; | UINT key; |
| key = np2oscfg.F12KEY - 1; | key = np2oscfg.F12KEY - 1; |
| if (key < (sizeof(f12keys)/sizeof(BYTE))) { | if (key < (sizeof(f12keys)/sizeof(UINT8))) { |
| return(f12keys[key]); | return(f12keys[key]); |
| } | } |
| else { | else { |
| Line 168 static BYTE getf12key(void) { | Line 168 static BYTE getf12key(void) { |
| void winkbd_keydown(WPARAM wParam, LPARAM lParam) { | void winkbd_keydown(WPARAM wParam, LPARAM lParam) { |
| BYTE data; | UINT8 data; |
| if (wParam != VK_F12) { | if (wParam != VK_F12) { |
| data = key106[wParam & 0xff]; | data = key106[wParam & 0xff]; |
| Line 194 void winkbd_keydown(WPARAM wParam, LPARA | Line 194 void winkbd_keydown(WPARAM wParam, LPARA |
| void winkbd_keyup(WPARAM wParam, LPARAM lParam) { | void winkbd_keyup(WPARAM wParam, LPARAM lParam) { |
| BYTE data; | UINT8 data; |
| if (wParam != VK_F12) { | if (wParam != VK_F12) { |
| data = key106[wParam & 0xff]; | data = key106[wParam & 0xff]; |
| Line 208 void winkbd_keyup(WPARAM wParam, LPARAM | Line 208 void winkbd_keyup(WPARAM wParam, LPARAM |
| keystat_senddata(0x70 | 0x80); // PC/AT only | keystat_senddata(0x70 | 0x80); // PC/AT only |
| data = key106ext[wParam & 0xff]; | data = key106ext[wParam & 0xff]; |
| } | } |
| keystat_senddata((BYTE)(data | 0x80)); | keystat_senddata((UINT8)(data | 0x80)); |
| } | } |
| else { // ver0.28 | else { // ver0.28 |
| if (wParam == 0x0c) { | if (wParam == 0x0c) { |
| Line 222 void winkbd_resetf12(void) { | Line 222 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]); |
| } | } |
| } | } |
| Line 239 typedef struct { | Line 239 typedef struct { |
| } KEYADRS; | } KEYADRS; |
| typedef struct { | typedef struct { |
| BYTE key[4]; | UINT8 key[4]; |
| } KEYSET; | } KEYSET; |
| typedef struct { | typedef struct { |
| Line 270 static const PPCBTNTBL ppcbtntbl = { | Line 270 static const PPCBTNTBL ppcbtntbl = { |
| static PPCBTNDEF ppcbtndef; | static PPCBTNDEF ppcbtndef; |
| static void getbind(KEYSET *bind, const BYTE *tbl, const KEYADRS *adrs) { | static void getbind(KEYSET *bind, const UINT8 *tbl, const KEYADRS *adrs) { |
| int i; | int i; |
| int key; | int key; |
| Line 281 static void getbind(KEYSET *bind, const | Line 281 static void getbind(KEYSET *bind, const |
| } | } |
| } | } |
| static void setbind(BYTE *tbl, const KEYSET *bind, const KEYADRS *adrs) { | static void setbind(UINT8 *tbl, const KEYSET *bind, const KEYADRS *adrs) { |
| int i; | int i; |
| int key; | int key; |