26458
|
1 /*
|
|
2 * This file is part of MPlayer.
|
|
3 *
|
|
4 * MPlayer is free software; you can redistribute it and/or modify
|
|
5 * it under the terms of the GNU General Public License as published by
|
|
6 * the Free Software Foundation; either version 2 of the License, or
|
|
7 * (at your option) any later version.
|
|
8 *
|
|
9 * MPlayer is distributed in the hope that it will be useful,
|
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 * GNU General Public License for more details.
|
|
13 *
|
|
14 * You should have received a copy of the GNU General Public License along
|
|
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
|
|
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
17 */
|
|
18
|
26029
|
19 #ifndef MPLAYER_GUI_WSKEYS_H
|
|
20 #define MPLAYER_GUI_WSKEYS_H
|
23077
|
21
|
|
22 #define wsKeyNone -1
|
|
23
|
|
24 #define wsosbrackets '['
|
|
25 #define wscsbrackets ']'
|
|
26
|
|
27 #define wsq 'q'
|
|
28 #define wsa 'a'
|
|
29 #define wsz 'z'
|
|
30 #define wsw 'w'
|
|
31 #define wss 's'
|
|
32 #define wsx 'x'
|
|
33 #define wse 'e'
|
|
34 #define wsd 'd'
|
|
35 #define wsr 'r'
|
|
36 #define wsf 'f'
|
|
37 #define wsv 'v'
|
|
38 #define wst 't'
|
|
39 #define wsg 'g'
|
|
40 #define wsb 'b'
|
|
41 #define wsy 'y'
|
|
42 #define wsh 'h'
|
|
43 #define wsn 'n'
|
|
44 #define wsu 'u'
|
|
45 #define wsj 'j'
|
|
46 #define wsm 'm'
|
|
47 #define wsi 'i'
|
|
48 #define wsk 'k'
|
|
49 #define wso 'o'
|
|
50 #define wsl 'l'
|
|
51 #define wsp 'p'
|
|
52 #define wsc 'c'
|
|
53
|
|
54 #define wsQ 'Q'
|
|
55 #define wsA 'A'
|
|
56 #define wsZ 'Z'
|
|
57 #define wsW 'W'
|
|
58 #define wsS 'S'
|
|
59 #define wsX 'X'
|
|
60 #define wsE 'E'
|
|
61 #define wsD 'D'
|
|
62 #define wsR 'R'
|
|
63 #define wsF 'F'
|
|
64 #define wsV 'V'
|
|
65 #define wsT 'T'
|
|
66 #define wsG 'G'
|
|
67 #define wsB 'B'
|
|
68 #define wsY 'Y'
|
|
69 #define wsH 'H'
|
|
70 #define wsN 'N'
|
|
71 #define wsU 'U'
|
|
72 #define wsJ 'J'
|
|
73 #define wsM 'M'
|
|
74 #define wsI 'I'
|
|
75 #define wsK 'K'
|
|
76 #define wsO 'O'
|
|
77 #define wsL 'L'
|
|
78 #define wsP 'P'
|
|
79 #define wsC 'C'
|
|
80
|
|
81 #define ws0 '0'
|
|
82 #define ws1 '1'
|
|
83 #define ws2 '2'
|
|
84 #define ws3 '3'
|
|
85 #define ws4 '4'
|
|
86 #define ws5 '5'
|
|
87 #define ws6 '6'
|
|
88 #define ws7 '7'
|
|
89 #define ws8 '8'
|
|
90 #define ws9 '9'
|
|
91
|
|
92 #define wsSpace ' '
|
|
93 #define wsMinus '-'
|
|
94 #define wsPlus '+'
|
|
95 #define wsMul '*'
|
|
96 #define wsDiv '/'
|
|
97 #define wsLess '<'
|
|
98 #define wsMore '>'
|
|
99
|
|
100 #define wsUp 0x52 + 256
|
|
101 #define wsDown 0x54 + 256
|
|
102 #define wsLeft 0x51 + 256
|
|
103 #define wsRight 0x53 + 256
|
|
104 #define wsLeftCtrl 0xe3 + 256
|
|
105 #define wsRightCtrl 0xe4 + 256
|
|
106 #define wsLeftAlt 0xe9 + 256
|
|
107 #define wsRightAlt 0x7e + 256
|
|
108 #define wsLeftShift 0xe1 + 256
|
|
109 #define wsRightShift 0xe2 + 256
|
|
110 #define wsEnter 0x0d + 256
|
|
111 #define wsBackSpace 0x08 + 256
|
|
112 #define wsCapsLock 0xe5 + 256
|
|
113 #define wsTab 0x09 + 256
|
|
114 #define wsF1 0xbe + 256
|
|
115 #define wsF2 0xbf + 256
|
|
116 #define wsF3 0xc0 + 256
|
|
117 #define wsF4 0xc1 + 256
|
|
118 #define wsF5 0xc2 + 256
|
|
119 #define wsF6 0xc3 + 256
|
|
120 #define wsF7 0xc4 + 256
|
|
121 #define wsF8 0xc5 + 256
|
|
122 #define wsF9 0xc6 + 256
|
|
123 #define wsF10 0xc7 + 256
|
|
124 #define wsF11 0xc8 + 256
|
|
125 #define wsF12 0xc9 + 256
|
|
126 #define wsInsert 0x63 + 256
|
|
127 #define wsDelete 0xff + 256
|
|
128 #define wsHome 0x50 + 256
|
|
129 #define wsEnd 0x57 + 256
|
|
130 #define wsPageUp 0x55 + 256
|
|
131 #define wsPageDown 0x56 + 256
|
|
132 #define wsNumLock 0x7f + 256
|
|
133 #define wsEscape 0x1b + 256
|
|
134 #define wsGrayEnter 0x8d + 256
|
|
135 #define wsGrayPlus 0xab + 256
|
|
136 #define wsGrayMinus 0xad + 256
|
|
137 #define wsGrayMul 0xaa + 256
|
|
138 #define wsGrayDiv 0xaf + 256
|
|
139
|
|
140 #define wsGrayInsert 0xb0 + 256
|
|
141 #define wsGrayDelete 0xae + 256
|
|
142 #define wsGrayEnd 0xb1 + 256
|
|
143 #define wsGrayDown 0xb2 + 256
|
|
144 #define wsGrayPageDown 0xb3 + 256
|
|
145 #define wsGrayLeft 0xb4 + 256
|
|
146 #define wsGray5 0xb5 + 256
|
|
147 #define wsGrayRight 0xb6 + 256
|
|
148 #define wsGrayHome 0xb7 + 256
|
|
149 #define wsGrayUp 0xb8 + 256
|
|
150 #define wsGrayPageUp 0xb9 + 256
|
|
151
|
|
152 //Keys for multimedia keyboard
|
|
153
|
|
154 #define wsXF86LowerVolume 0x11 + 256
|
|
155 #define wsXF86RaiseVolume 0x13 + 256
|
|
156 #define wsXF86Mute 0x12 + 256
|
|
157 #define wsXF86Play 0x14 + 256
|
|
158 #define wsXF86Stop 0x15 + 256
|
|
159 #define wsXF86Prev 0x16 + 256
|
|
160 #define wsXF86Next 0x17 + 256
|
|
161 #define wsXF86Media 0x32 + 256
|
|
162
|
|
163 #define wsXFMMPrev 0x98
|
|
164 #define wsXFMMStop 0xb1
|
|
165 #define wsXFMMPlay 0x95
|
|
166 #define wsXFMMNext 0x93
|
|
167 #define wsXFMMVolUp 0xad
|
|
168 #define wsXFMMVolDown 0xa6
|
|
169 #define wsXFMMMute 0x99
|
|
170
|
|
171 #define wsKeyNumber 130
|
|
172
|
|
173 typedef struct
|
|
174 {
|
|
175 int code;
|
|
176 const char * name;
|
|
177 } TwsKeyNames;
|
|
178
|
25244
|
179 extern const TwsKeyNames wsKeyNames[ wsKeyNumber ];
|
23077
|
180
|
26029
|
181 #endif /* MPLAYER_GUI_WSKEYS_H */
|