Mercurial > mplayer.hg
annotate Gui/wm/wskeys.h @ 19695:782364fc00c4
Use better resolution for pts computation.
Fixes desync in Real live streams with huge pts values
author | rtogni |
---|---|
date | Tue, 05 Sep 2006 21:53:09 +0000 |
parents | 08888397444e |
children |
rev | line source |
---|---|
1693 | 1 |
2 #ifndef _MY_WSKEY | |
3 #define _MY_WSKEY | |
4 | |
5 #define wsKeyNone -1 | |
6 | |
7 #define wsosbrackets '[' | |
8 #define wscsbrackets ']' | |
9 | |
10 #define wsq 'q' | |
11 #define wsa 'a' | |
12 #define wsz 'z' | |
13 #define wsw 'w' | |
14 #define wss 's' | |
15 #define wsx 'x' | |
16 #define wse 'e' | |
17 #define wsd 'd' | |
18 #define wsr 'r' | |
19 #define wsf 'f' | |
20 #define wsv 'v' | |
21 #define wst 't' | |
22 #define wsg 'g' | |
23 #define wsb 'b' | |
24 #define wsy 'y' | |
25 #define wsh 'h' | |
26 #define wsn 'n' | |
27 #define wsu 'u' | |
28 #define wsj 'j' | |
29 #define wsm 'm' | |
30 #define wsi 'i' | |
31 #define wsk 'k' | |
32 #define wso 'o' | |
33 #define wsl 'l' | |
34 #define wsp 'p' | |
35 #define wsc 'c' | |
36 | |
37 #define wsQ 'Q' | |
38 #define wsA 'A' | |
39 #define wsZ 'Z' | |
40 #define wsW 'W' | |
41 #define wsS 'S' | |
42 #define wsX 'X' | |
43 #define wsE 'E' | |
44 #define wsD 'D' | |
45 #define wsR 'R' | |
46 #define wsF 'F' | |
47 #define wsV 'V' | |
48 #define wsT 'T' | |
49 #define wsG 'G' | |
50 #define wsB 'B' | |
51 #define wsY 'Y' | |
52 #define wsH 'H' | |
53 #define wsN 'N' | |
54 #define wsU 'U' | |
55 #define wsJ 'J' | |
56 #define wsM 'M' | |
57 #define wsI 'I' | |
58 #define wsK 'K' | |
59 #define wsO 'O' | |
60 #define wsL 'L' | |
61 #define wsP 'P' | |
62 #define wsC 'C' | |
63 | |
64 #define ws0 '0' | |
65 #define ws1 '1' | |
66 #define ws2 '2' | |
67 #define ws3 '3' | |
68 #define ws4 '4' | |
69 #define ws5 '5' | |
70 #define ws6 '6' | |
71 #define ws7 '7' | |
72 #define ws8 '8' | |
73 #define ws9 '9' | |
74 | |
75 #define wsSpace ' ' | |
6089 | 76 #define wsMinus '-' |
77 #define wsPlus '+' | |
78 #define wsMul '*' | |
79 #define wsDiv '/' | |
80 #define wsLess '<' | |
81 #define wsMore '>' | |
1693 | 82 |
83 #define wsUp 0x52 + 256 | |
84 #define wsDown 0x54 + 256 | |
85 #define wsLeft 0x51 + 256 | |
86 #define wsRight 0x53 + 256 | |
87 #define wsLeftCtrl 0xe3 + 256 | |
88 #define wsRightCtrl 0xe4 + 256 | |
89 #define wsLeftAlt 0xe9 + 256 | |
90 #define wsRightAlt 0x7e + 256 | |
91 #define wsLeftShift 0xe1 + 256 | |
92 #define wsRightShift 0xe2 + 256 | |
93 #define wsEnter 0x0d + 256 | |
94 #define wsBackSpace 0x08 + 256 | |
95 #define wsCapsLock 0xe5 + 256 | |
96 #define wsTab 0x09 + 256 | |
97 #define wsF1 0xbe + 256 | |
98 #define wsF2 0xbf + 256 | |
99 #define wsF3 0xc0 + 256 | |
100 #define wsF4 0xc1 + 256 | |
101 #define wsF5 0xc2 + 256 | |
102 #define wsF6 0xc3 + 256 | |
103 #define wsF7 0xc4 + 256 | |
104 #define wsF8 0xc5 + 256 | |
105 #define wsF9 0xc6 + 256 | |
106 #define wsF10 0xc7 + 256 | |
11793 | 107 #define wsF11 0xc8 + 256 |
108 #define wsF12 0xc9 + 256 | |
1693 | 109 #define wsInsert 0x63 + 256 |
110 #define wsDelete 0xff + 256 | |
111 #define wsHome 0x50 + 256 | |
112 #define wsEnd 0x57 + 256 | |
113 #define wsPageUp 0x55 + 256 | |
114 #define wsPageDown 0x56 + 256 | |
115 #define wsNumLock 0x7f + 256 | |
116 #define wsEscape 0x1b + 256 | |
117 #define wsGrayEnter 0x8d + 256 | |
118 #define wsGrayPlus 0xab + 256 | |
119 #define wsGrayMinus 0xad + 256 | |
120 #define wsGrayMul 0xaa + 256 | |
121 #define wsGrayDiv 0xaf + 256 | |
122 | |
123 #define wsGrayInsert 0xb0 + 256 | |
124 #define wsGrayDelete 0xae + 256 | |
125 #define wsGrayEnd 0xb1 + 256 | |
126 #define wsGrayDown 0xb2 + 256 | |
127 #define wsGrayPageDown 0xb3 + 256 | |
128 #define wsGrayLeft 0xb4 + 256 | |
129 #define wsGray5 0xb5 + 256 | |
130 #define wsGrayRight 0xb6 + 256 | |
131 #define wsGrayHome 0xb7 + 256 | |
132 #define wsGrayUp 0xb8 + 256 | |
133 #define wsGrayPageUp 0xb9 + 256 | |
134 | |
4409 | 135 //Keys for multimedia keyboard |
136 | |
137 #define wsXF86LowerVolume 0x11 + 256 | |
138 #define wsXF86RaiseVolume 0x13 + 256 | |
139 #define wsXF86Mute 0x12 + 256 | |
140 #define wsXF86Play 0x14 + 256 | |
141 #define wsXF86Stop 0x15 + 256 | |
142 #define wsXF86Prev 0x16 + 256 | |
143 #define wsXF86Next 0x17 + 256 | |
144 #define wsXF86Media 0x32 + 256 | |
145 | |
6183
a4bbda72ce86
fix two small bug and add multimedia keyboard support ( i tested with Acer AirKey V only )
pontscho
parents:
6089
diff
changeset
|
146 #define wsXFMMPrev 0x98 |
a4bbda72ce86
fix two small bug and add multimedia keyboard support ( i tested with Acer AirKey V only )
pontscho
parents:
6089
diff
changeset
|
147 #define wsXFMMStop 0xb1 |
a4bbda72ce86
fix two small bug and add multimedia keyboard support ( i tested with Acer AirKey V only )
pontscho
parents:
6089
diff
changeset
|
148 #define wsXFMMPlay 0x95 |
a4bbda72ce86
fix two small bug and add multimedia keyboard support ( i tested with Acer AirKey V only )
pontscho
parents:
6089
diff
changeset
|
149 #define wsXFMMNext 0x93 |
a4bbda72ce86
fix two small bug and add multimedia keyboard support ( i tested with Acer AirKey V only )
pontscho
parents:
6089
diff
changeset
|
150 #define wsXFMMVolUp 0xad |
a4bbda72ce86
fix two small bug and add multimedia keyboard support ( i tested with Acer AirKey V only )
pontscho
parents:
6089
diff
changeset
|
151 #define wsXFMMVolDown 0xa6 |
a4bbda72ce86
fix two small bug and add multimedia keyboard support ( i tested with Acer AirKey V only )
pontscho
parents:
6089
diff
changeset
|
152 #define wsXFMMMute 0x99 |
a4bbda72ce86
fix two small bug and add multimedia keyboard support ( i tested with Acer AirKey V only )
pontscho
parents:
6089
diff
changeset
|
153 |
11976 | 154 #define wsKeyNumber 130 |
1693 | 155 |
156 typedef struct | |
157 { | |
158 int code; | |
19110
08888397444e
marks several strings inside structs as const when they hold just
reynaldo
parents:
11976
diff
changeset
|
159 const char * name; |
1693 | 160 } TwsKeyNames; |
161 | |
162 extern TwsKeyNames wsKeyNames[ wsKeyNumber ]; | |
163 | |
164 #endif | |
165 |