summaryrefslogtreecommitdiffstats
path: root/Gui/wm/wskeys.h
blob: b1438af92f1015e83294cc6bb3191031fcb32d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165

#ifndef _MY_WSKEY
#define _MY_WSKEY

#define wsKeyNone -1

#define wsosbrackets '['
#define wscsbrackets ']'

#define wsq 'q'
#define wsa 'a'
#define wsz 'z'
#define wsw 'w'
#define wss 's'
#define wsx 'x'
#define wse 'e'
#define wsd 'd'
#define wsr 'r'
#define wsf 'f'
#define wsv 'v'
#define wst 't'
#define wsg 'g'
#define wsb 'b'
#define wsy 'y'
#define wsh 'h'
#define wsn 'n'
#define wsu 'u'
#define wsj 'j'
#define wsm 'm'
#define wsi 'i'
#define wsk 'k'
#define wso 'o'
#define wsl 'l'
#define wsp 'p'
#define wsc 'c'

#define wsQ 'Q'
#define wsA 'A'
#define wsZ 'Z'
#define wsW 'W'
#define wsS 'S'
#define wsX 'X'
#define wsE 'E'
#define wsD 'D'
#define wsR 'R'
#define wsF 'F'
#define wsV 'V'
#define wsT 'T'
#define wsG 'G'
#define wsB 'B'
#define wsY 'Y'
#define wsH 'H'
#define wsN 'N'
#define wsU 'U'
#define wsJ 'J'
#define wsM 'M'
#define wsI 'I'
#define wsK 'K'
#define wsO 'O'
#define wsL 'L'
#define wsP 'P'
#define wsC 'C'

#define ws0 '0'
#define ws1 '1'
#define ws2 '2'
#define ws3 '3'
#define ws4 '4'
#define ws5 '5'
#define ws6 '6'
#define ws7 '7'
#define ws8 '8'
#define ws9 '9'

#define wsSpace ' '
#define wsMinus '-'
#define wsPlus  '+'
#define wsMul   '*'
#define wsDiv   '/'
#define wsLess  '<'
#define wsMore  '>'

#define wsUp            0x52 + 256
#define wsDown          0x54 + 256
#define wsLeft          0x51 + 256
#define wsRight         0x53 + 256
#define wsLeftCtrl      0xe3 + 256
#define wsRightCtrl     0xe4 + 256
#define wsLeftAlt       0xe9 + 256
#define wsRightAlt      0x7e + 256
#define wsLeftShift     0xe1 + 256
#define wsRightShift    0xe2 + 256
#define wsEnter         0x0d + 256
#define wsBackSpace     0x08 + 256
#define wsCapsLock      0xe5 + 256
#define wsTab           0x09 + 256
#define wsF1            0xbe + 256
#define wsF2            0xbf + 256
#define wsF3            0xc0 + 256
#define wsF4            0xc1 + 256
#define wsF5            0xc2 + 256
#define wsF6            0xc3 + 256
#define wsF7            0xc4 + 256
#define wsF8            0xc5 + 256
#define wsF9            0xc6 + 256
#define wsF10           0xc7 + 256
#define wsF11           0xc8 + 256
#define wsF12           0xc9 + 256
#define wsInsert        0x63 + 256
#define wsDelete        0xff + 256
#define wsHome          0x50 + 256
#define wsEnd           0x57 + 256
#define wsPageUp        0x55 + 256
#define wsPageDown      0x56 + 256
#define wsNumLock       0x7f + 256
#define wsEscape        0x1b + 256
#define wsGrayEnter     0x8d + 256
#define wsGrayPlus      0xab + 256
#define wsGrayMinus     0xad + 256
#define wsGrayMul       0xaa + 256
#define wsGrayDiv       0xaf + 256

#define wsGrayInsert    0xb0 + 256
#define wsGrayDelete    0xae + 256
#define wsGrayEnd       0xb1 + 256
#define wsGrayDown      0xb2 + 256
#define wsGrayPageDown  0xb3 + 256
#define wsGrayLeft      0xb4 + 256
#define wsGray5         0xb5 + 256
#define wsGrayRight     0xb6 + 256
#define wsGrayHome      0xb7 + 256
#define wsGrayUp        0xb8 + 256
#define wsGrayPageUp    0xb9 + 256

//Keys for multimedia keyboard

#define wsXF86LowerVolume 0x11 + 256
#define wsXF86RaiseVolume 0x13 + 256
#define wsXF86Mute        0x12 + 256
#define wsXF86Play        0x14 + 256
#define wsXF86Stop        0x15 + 256
#define wsXF86Prev        0x16 + 256
#define wsXF86Next        0x17 + 256
#define wsXF86Media       0x32 + 256

#define wsXFMMPrev        0x98
#define wsXFMMStop        0xb1
#define wsXFMMPlay	  0x95
#define wsXFMMNext        0x93
#define wsXFMMVolUp       0xad
#define wsXFMMVolDown     0xa6
#define wsXFMMMute        0x99

#define wsKeyNumber 130

typedef struct
{
 int    code;
 char * name;
} TwsKeyNames;

extern TwsKeyNames wsKeyNames[ wsKeyNumber ];

#endif