1693
|
1
|
|
2 #ifndef _MY_WSKEY
|
|
3 #define _MY_WSKEY
|
|
4
|
|
5 #define wsKeyNone -1
|
|
6
|
|
7 #define wsosbrackets '['
|
|
8 #define wscsbrackets ']'
|
|
9 #define wsomore '<'
|
|
10 #define wscmore '>'
|
|
11
|
|
12 #define wsq 'q'
|
|
13 #define wsa 'a'
|
|
14 #define wsz 'z'
|
|
15 #define wsw 'w'
|
|
16 #define wss 's'
|
|
17 #define wsx 'x'
|
|
18 #define wse 'e'
|
|
19 #define wsd 'd'
|
|
20 #define wsr 'r'
|
|
21 #define wsf 'f'
|
|
22 #define wsv 'v'
|
|
23 #define wst 't'
|
|
24 #define wsg 'g'
|
|
25 #define wsb 'b'
|
|
26 #define wsy 'y'
|
|
27 #define wsh 'h'
|
|
28 #define wsn 'n'
|
|
29 #define wsu 'u'
|
|
30 #define wsj 'j'
|
|
31 #define wsm 'm'
|
|
32 #define wsi 'i'
|
|
33 #define wsk 'k'
|
|
34 #define wso 'o'
|
|
35 #define wsl 'l'
|
|
36 #define wsp 'p'
|
|
37 #define wsc 'c'
|
|
38
|
|
39 #define wsQ 'Q'
|
|
40 #define wsA 'A'
|
|
41 #define wsZ 'Z'
|
|
42 #define wsW 'W'
|
|
43 #define wsS 'S'
|
|
44 #define wsX 'X'
|
|
45 #define wsE 'E'
|
|
46 #define wsD 'D'
|
|
47 #define wsR 'R'
|
|
48 #define wsF 'F'
|
|
49 #define wsV 'V'
|
|
50 #define wsT 'T'
|
|
51 #define wsG 'G'
|
|
52 #define wsB 'B'
|
|
53 #define wsY 'Y'
|
|
54 #define wsH 'H'
|
|
55 #define wsN 'N'
|
|
56 #define wsU 'U'
|
|
57 #define wsJ 'J'
|
|
58 #define wsM 'M'
|
|
59 #define wsI 'I'
|
|
60 #define wsK 'K'
|
|
61 #define wsO 'O'
|
|
62 #define wsL 'L'
|
|
63 #define wsP 'P'
|
|
64 #define wsC 'C'
|
|
65
|
|
66 #define ws0 '0'
|
|
67 #define ws1 '1'
|
|
68 #define ws2 '2'
|
|
69 #define ws3 '3'
|
|
70 #define ws4 '4'
|
|
71 #define ws5 '5'
|
|
72 #define ws6 '6'
|
|
73 #define ws7 '7'
|
|
74 #define ws8 '8'
|
|
75 #define ws9 '9'
|
|
76
|
|
77 #define wsSpace ' '
|
|
78
|
|
79 #define wsUp 0x52 + 256
|
|
80 #define wsDown 0x54 + 256
|
|
81 #define wsLeft 0x51 + 256
|
|
82 #define wsRight 0x53 + 256
|
|
83 #define wsLeftCtrl 0xe3 + 256
|
|
84 #define wsRightCtrl 0xe4 + 256
|
|
85 #define wsLeftAlt 0xe9 + 256
|
|
86 #define wsRightAlt 0x7e + 256
|
|
87 #define wsLeftShift 0xe1 + 256
|
|
88 #define wsRightShift 0xe2 + 256
|
|
89 #define wsEnter 0x0d + 256
|
|
90 #define wsBackSpace 0x08 + 256
|
|
91 #define wsCapsLock 0xe5 + 256
|
|
92 #define wsTab 0x09 + 256
|
|
93 #define wsF1 0xbe + 256
|
|
94 #define wsF2 0xbf + 256
|
|
95 #define wsF3 0xc0 + 256
|
|
96 #define wsF4 0xc1 + 256
|
|
97 #define wsF5 0xc2 + 256
|
|
98 #define wsF6 0xc3 + 256
|
|
99 #define wsF7 0xc4 + 256
|
|
100 #define wsF8 0xc5 + 256
|
|
101 #define wsF9 0xc6 + 256
|
|
102 #define wsF10 0xc7 + 256
|
|
103 #define wsInsert 0x63 + 256
|
|
104 #define wsDelete 0xff + 256
|
|
105 #define wsHome 0x50 + 256
|
|
106 #define wsEnd 0x57 + 256
|
|
107 #define wsPageUp 0x55 + 256
|
|
108 #define wsPageDown 0x56 + 256
|
|
109 #define wsNumLock 0x7f + 256
|
|
110 #define wsEscape 0x1b + 256
|
|
111 #define wsGrayEnter 0x8d + 256
|
|
112 #define wsGrayPlus 0xab + 256
|
|
113 #define wsGrayMinus 0xad + 256
|
|
114 #define wsGrayMul 0xaa + 256
|
|
115 #define wsGrayDiv 0xaf + 256
|
|
116
|
|
117 #define wsGrayInsert 0xb0 + 256
|
|
118 #define wsGrayDelete 0xae + 256
|
|
119 #define wsGrayEnd 0xb1 + 256
|
|
120 #define wsGrayDown 0xb2 + 256
|
|
121 #define wsGrayPageDown 0xb3 + 256
|
|
122 #define wsGrayLeft 0xb4 + 256
|
|
123 #define wsGray5 0xb5 + 256
|
|
124 #define wsGrayRight 0xb6 + 256
|
|
125 #define wsGrayHome 0xb7 + 256
|
|
126 #define wsGrayUp 0xb8 + 256
|
|
127 #define wsGrayPageUp 0xb9 + 256
|
|
128
|
4409
|
129 //Keys for multimedia keyboard
|
|
130
|
|
131 #define wsXF86LowerVolume 0x11 + 256
|
|
132 #define wsXF86RaiseVolume 0x13 + 256
|
|
133 #define wsXF86Mute 0x12 + 256
|
|
134 #define wsXF86Play 0x14 + 256
|
|
135 #define wsXF86Stop 0x15 + 256
|
|
136 #define wsXF86Prev 0x16 + 256
|
|
137 #define wsXF86Next 0x17 + 256
|
|
138 #define wsXF86Media 0x32 + 256
|
|
139
|
|
140 #define wsKeyNumber 124
|
1693
|
141
|
|
142 typedef struct
|
|
143 {
|
|
144 int code;
|
|
145 char * name;
|
|
146 } TwsKeyNames;
|
|
147
|
|
148 extern TwsKeyNames wsKeyNames[ wsKeyNumber ];
|
|
149
|
|
150 #endif
|
|
151
|