Mercurial > mplayer.hg
annotate libvo/wskeys.h @ 24992:5701e23ebcb4
Better handling of win32 GUI thread:
1. Use _beginthreadex to create the GUI thread to avoid possible memory leak
when linked to MS CRT.
2. Terminate the GUI thread in an cleaner way using PostThreadMessage()
rather than the unrecommended TerminateThread().
author | zuxy |
---|---|
date | Sun, 11 Nov 2007 08:14:57 +0000 |
parents | 3f0d00abc073 |
children | 3baf6a2283da |
rev | line source |
---|---|
1 | 1 |
23689
3f0d00abc073
Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents:
23686
diff
changeset
|
2 #ifndef WSKEYS_H |
3f0d00abc073
Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents:
23686
diff
changeset
|
3 #define WSKEYS_H |
1 | 4 |
5 #define wsosbrackets '[' | |
6 #define wscsbrackets ']' | |
7 | |
8 #define wsq 'q' | |
9 #define wsa 'a' | |
10 #define wsz 'z' | |
11 #define wsw 'w' | |
12 #define wss 's' | |
13 #define wsx 'x' | |
14 #define wse 'e' | |
15 #define wsd 'd' | |
16 #define wsr 'r' | |
17 #define wsf 'f' | |
18 #define wsv 'v' | |
19 #define wst 't' | |
20 #define wsg 'g' | |
21 #define wsb 'b' | |
22 #define wsy 'y' | |
23 #define wsh 'h' | |
24 #define wsn 'n' | |
25 #define wsu 'u' | |
26 #define wsj 'j' | |
27 #define wsm 'm' | |
28 #define wsi 'i' | |
29 #define wsk 'k' | |
30 #define wso 'o' | |
31 #define wsl 'l' | |
32 #define wsp 'p' | |
33 | |
34 #define wsQ 'Q' | |
35 #define wsA 'A' | |
36 #define wsZ 'Z' | |
37 #define wsW 'W' | |
38 #define wsS 'S' | |
39 #define wsX 'X' | |
40 #define wsE 'E' | |
41 #define wsD 'D' | |
42 #define wsR 'R' | |
43 #define wsF 'F' | |
44 #define wsV 'V' | |
45 #define wsT 'T' | |
46 #define wsG 'G' | |
47 #define wsB 'B' | |
48 #define wsY 'Y' | |
49 #define wsH 'H' | |
50 #define wsN 'N' | |
51 #define wsU 'U' | |
52 #define wsJ 'J' | |
53 #define wsM 'M' | |
54 #define wsI 'I' | |
55 #define wsK 'K' | |
56 #define wsO 'O' | |
57 #define wsL 'L' | |
58 #define wsP 'P' | |
59 | |
60 #define wsSpace ' ' | |
61 #define wsMinus '-' | |
62 #define wsPlus '+' | |
453 | 63 #define wsMul '*' |
64 #define wsDiv '/' | |
3490 | 65 #define wsLess '<' |
66 #define wsMore '>' | |
1 | 67 |
10936
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
68 #define wsGrave '`' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
69 #define wsTilde '~' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
70 #define wsExclSign '!' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
71 #define wsAt '@' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
72 #define wsHash '#' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
73 #define wsDollar '$' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
74 #define wsPercent '%' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
75 #define wsCircumflex '^' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
76 #define wsAmpersand '&' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
77 #define wsobracket '(' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
78 #define wscbracket ')' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
79 #define wsUnder '_' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
80 #define wsocbracket '{' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
81 #define wsccbracket '}' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
82 #define wsColon ':' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
83 #define wsSemicolon ';' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
84 #define wsDblQuote '\"' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
85 #define wsAcute '\'' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
86 #define wsComma ',' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
87 #define wsPoint '.' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
88 #define wsQuestSign '?' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
89 #define wsBSlash '\\' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
90 #define wsPipe '|' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
91 #define wsEqual '=' |
51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
lumag
parents:
9891
diff
changeset
|
92 |
1 | 93 #define wsUp 0x52 + 256 |
94 #define wsDown 0x54 + 256 | |
95 #define wsLeft 0x51 + 256 | |
96 #define wsRight 0x53 + 256 | |
97 #define wsLeftCtrl 0xe3 + 256 | |
98 #define wsRightCtrl 0xe4 + 256 | |
99 #define wsLeftAlt 0xe9 + 256 | |
100 #define wsRightAlt 0x7e + 256 | |
101 #define wsLeftShift 0xe1 + 256 | |
102 #define wsRightShift 0xe2 + 256 | |
103 #define wsEnter 0x0d + 256 | |
104 #define wsBackSpace 0x08 + 256 | |
105 #define wsCapsLock 0xe5 + 256 | |
106 #define wsTab 0x09 + 256 | |
107 #define wsF1 0xbe + 256 | |
108 #define wsF2 0xbf + 256 | |
109 #define wsF3 0xc0 + 256 | |
110 #define wsF4 0xc1 + 256 | |
111 #define wsF5 0xc2 + 256 | |
112 #define wsF6 0xc3 + 256 | |
113 #define wsF7 0xc4 + 256 | |
114 #define wsF8 0xc5 + 256 | |
115 #define wsF9 0xc6 + 256 | |
116 #define wsF10 0xc7 + 256 | |
11793 | 117 #define wsF11 0xc8 + 256 |
118 #define wsF12 0xc9 + 256 | |
1 | 119 #define wsInsert 0x63 + 256 |
120 #define wsDelete 0xff + 256 | |
121 #define wsHome 0x50 + 256 | |
122 #define wsEnd 0x57 + 256 | |
123 #define wsPageUp 0x55 + 256 | |
124 #define wsPageDown 0x56 + 256 | |
125 #define wsNumLock 0x7f + 256 | |
126 #define wsEscape 0x1b + 256 | |
127 #define wsGrayEnter 0x8d + 256 | |
128 #define wsGrayPlus 0xab + 256 | |
129 #define wsGrayMinus 0xad + 256 | |
130 #define wsGrayMul 0xaa + 256 | |
131 #define wsGrayDiv 0xaf + 256 | |
9891
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
132 #define wsGrayDecimal 0xae + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
133 #define wsGray0 0xb0 + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
134 #define wsGray1 0xb1 + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
135 #define wsGray2 0xb2 + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
136 #define wsGray3 0xb3 + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
137 #define wsGray4 0xb4 + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
138 #define wsGray5 0xb5 + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
139 #define wsGray6 0xb6 + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
140 #define wsGray7 0xb7 + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
141 #define wsGray8 0xb8 + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
142 #define wsGray9 0xb9 + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
143 #define wsGrayHome 0x95 + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
144 #define wsGrayLeft 0x96 + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
145 #define wsGrayUp 0x97 + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
146 #define wsGrayRight 0x98 + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
147 #define wsGrayDown 0x99 + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
148 #define wsGrayPgUp 0x9a + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
149 #define wsGrayPgDn 0x9b + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
150 #define wsGrayEnd 0x9c + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
151 #define wsGray5Dup 0x9d + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
152 #define wsGrayInsert 0x9e + 256 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
3490
diff
changeset
|
153 #define wsGrayDelete 0x9f + 256 |
1 | 154 |
155 #endif | |
156 |