|
|
| version 1.1, 2004/02/18 03:24:48 | version 1.2, 2004/02/18 18:29:29 |
|---|---|
| Line 1 | Line 1 |
| typedef struct { | |
| UINT8 num; | |
| char str[7]; | |
| } KEYNAME; | |
| static const KEYNAME keyname[] = { | static const KEYNAME keyname[] = { |
| {0x00, "ESC"}, | {0x00, "ESC"}, |
| {0x01, "1"}, | {0x01, "1"}, |
| Line 118 static const KEYNAME keyname[] = { | Line 123 static const KEYNAME keyname[] = { |
| {0x73, "GRPH"}, {0x73, "ALT"}, | {0x73, "GRPH"}, {0x73, "ALT"}, |
| {0x74, "CTRL"}}; | {0x74, "CTRL"}}; |
| // ---- | |
| static const UINT8 joykeytable[12] = { | |
| 0x2a, 0x34, | |
| 0x29, 0x1c, | |
| 0x3c, 0x48, | |
| 0x3b, 0x46, | |
| 0x3d, 0x4b, | |
| 0x3a, 0x43}; | |
| static const UINT8 kbexflag[0x80] = { | |
| // ESC, £±, £², £³, £´, £µ, £¶, £· ; 00h | |
| 0, 0, 0, 0, 0, 0, 0, 0, | |
| // £¸, £¹, £°, ¡Ý, ¡°, ¡ï, BS, TAB ; 08h | |
| 0, 0, 0, 0, 0, 0, 0, 0, | |
| // £Ñ, £×, £Å, £Ò, £Ô, £Ù, £Õ, £É ; 10h | |
| 0, 0, 0, 0, 0, 0, 0, 0, | |
| // £Ï, £Ð, ¡÷, ¡Î, Ret, £Á, £Ó, £Ä ; 18h | |
| 0, 0, 0, 0, 1, 0, 0, 0, | |
| // £Æ, £Ç, £È, £Ê, £Ë, £Ì, ¡¨, ¡§ ; 20h | |
| 0, 0, 0, 0, 0, 0, 0, 0, | |
| // ¡Ï, £Ú, £Ø, £Ã, £Ö, £Â, £Î, £Í ; 28h | |
| 0, 1, 1, 0, 0, 0, 0, 0, | |
| // ¡¤, ¡¥, ¡¿, ¡², SPC,XFER,RLUP,RLDN ; 30h | |
| 0, 0, 0, 0, 1, 0, 0, 0, | |
| // INS, DEL, ¢¬, ¢«, ¢ª, ¢,HMCR,HELP ; 38h | |
| 2, 0, 1, 1, 1, 1, 0, 0, | |
| // <¡Ý>,<¡¿>,<£·>,<£¸>,<£¹>,<¡ö>,<£´>,<£µ> ; 40h | |
| 0, 0, 0, 1, 0, 0, 1, 0, | |
| // <£¶>,<¡Ü>,<£±>,<£²>,<£³>,<¡á>,<£°>,<¡¤> ; 48h | |
| 1, 0, 0, 1, 0, 0, 0, 0, | |
| // <¡¥>,NFER,vf.1,vf.2,vf.3,vf.4,vf.5, ; 50h | |
| 0, 0, 2, 2, 2, 2, 2, 0, | |
| // , , , , , ,HOME, ; 58h | |
| 0, 0, 0, 0, 0, 0, 0, 0, | |
| // STOP,COPY, f.1, f.2, f.3, f.4, f.5, f.6 ; 60h | |
| 0, 0, 2, 2, 2, 2, 2, 2, | |
| // f.7, f.8, f.9, f10, , , , ; 68h | |
| 2, 2, 2, 2, 0, 0, 0, 0, | |
| // SFT,CAPS,KANA,GRPH,CTRL, , , ; 70h | |
| 2, 2, 2, 2, 2, 0, 0, 0, | |
| // , , , , , , , ; 78h | |
| 0, 0, 0, 0, 0, 0, 0, 0}; | |
| static const UINT8 mousedelta[] = {1, 1, 1, 1, | |
| 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 4}; | |
| #define MOUSESTEPMAX ((sizeof(mousedelta) / sizeof(UINT8)) - 1) | |