Mercurial > sdl-ios-xcode
annotate docs/man3/SDLKey.3 @ 4223:63fd67e17705 SDL-1.2
Fixed bug #727
Lorenzo Desole 2009-04-19 07:36:10 PDT
I am one of the developers of a multimedia application (My Media System MMS),
which uses SDL.
MMS is normally running in fullscreen mode but it switches it off before
launching external applications (mplayer, xine, etc.).
The problem with fullscreen is that when the latter is switched off either via
SDL_WM_ToggleFullScreen() or SDL_SetVideoMode(), SDL compares the current
screen sizes with the ones saved when the video system was initted, and if they
don't match, it calls XF86VidModeSwitchToMode() to switch to the old modeline.
This makes it impossible for external programs and for MMS itself to use RandR
to change the screen size, because next time fullscreen mode is turned off, it
bombs out with the following error:
X Error of failed request: BadValue (integer parameter out of range for
operation)
Major opcode of failed request: 136 (XFree86-VidModeExtension)
Minor opcode of failed request: 10 (XF86VidModeSwitchToMode)
[...]
Obviously this happens only if the new screen resolution is smaller than the
original one and XF86VidModeSwitchToMode() can't succeed.
I couldn't find any way to inform SDL that the screen resolution it uses as
reference is no longer valid.
This can be fixed by adding "save_mode(this)" to
./src/video/x11/SDL_x11modes.c, API X11_EnterFullScreen(_THIS), like this:
int X11_EnterFullScreen(_THIS)
{
int okay;
+ save_mode(this);
I can't rule out possible side effects, but I don't see any.
While I admit this is a minor issue for the general users, it is a major
showstopper for our program where the ability to change screen resolution and
refresh rate according to the movie being played, is very important.
Thanks in advance.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 21 Sep 2009 11:14:36 +0000 |
parents | 4e3b250c950e |
children |
rev | line source |
---|---|
0 | 1 .TH "SDLKey" "3" "Wed 11 Oct 2000, 22:28" "SDL" "SDL API Reference" |
2 .SH "NAME" | |
4107
4e3b250c950e
Erik Heckers fixed bug #493
Sam Lantinga <slouken@libsdl.org>
parents:
0
diff
changeset
|
3 SDLKey \- SDL Keysym Definitions |
0 | 4 .SH "SDL Keysym definitions" |
5 .PP | |
6 \fBSDLKey ASCII value Common Name\fR | |
7 .nf | |
8 \f(CWSDLK_BACKSPACE '\\b' backspace | |
9 SDLK_TAB '\\t' tab | |
10 SDLK_CLEAR clear | |
11 SDLK_RETURN '\\r' return | |
12 SDLK_PAUSE pause | |
13 SDLK_ESCAPE '^[' escape | |
14 SDLK_SPACE ' ' space | |
15 SDLK_EXCLAIM '!' exclaim | |
16 SDLK_QUOTEDBL '"' quotedbl | |
17 SDLK_HASH '#' hash | |
18 SDLK_DOLLAR '$' dollar | |
19 SDLK_AMPERSAND '&' ampersand | |
20 SDLK_QUOTE ''' quote | |
21 SDLK_LEFTPAREN '(' left parenthesis | |
22 SDLK_RIGHTPAREN ')' right parenthesis | |
23 SDLK_ASTERISK '*' asterisk | |
24 SDLK_PLUS '+' plus sign | |
25 SDLK_COMMA ',' comma | |
26 SDLK_MINUS '-' minus sign | |
27 SDLK_PERIOD '.' period | |
28 SDLK_SLASH '/' forward slash | |
29 SDLK_0 '0' 0 | |
30 SDLK_1 '1' 1 | |
31 SDLK_2 '2' 2 | |
32 SDLK_3 '3' 3 | |
33 SDLK_4 '4' 4 | |
34 SDLK_5 '5' 5 | |
35 SDLK_6 '6' 6 | |
36 SDLK_7 '7' 7 | |
37 SDLK_8 '8' 8 | |
38 SDLK_9 '9' 9 | |
39 SDLK_COLON ':' colon | |
40 SDLK_SEMICOLON ';' semicolon | |
41 SDLK_LESS '<' less-than sign | |
42 SDLK_EQUALS '=' equals sign | |
43 SDLK_GREATER '>' greater-than sign | |
44 SDLK_QUESTION '?' question mark | |
45 SDLK_AT '@' at | |
46 SDLK_LEFTBRACKET '[' left bracket | |
47 SDLK_BACKSLASH '\\' backslash | |
48 SDLK_RIGHTBRACKET ']' right bracket | |
49 SDLK_CARET '^' caret | |
50 SDLK_UNDERSCORE '_' underscore | |
51 SDLK_BACKQUOTE '`' grave | |
52 SDLK_a 'a' a | |
53 SDLK_b 'b' b | |
54 SDLK_c 'c' c | |
55 SDLK_d 'd' d | |
56 SDLK_e 'e' e | |
57 SDLK_f 'f' f | |
58 SDLK_g 'g' g | |
59 SDLK_h 'h' h | |
60 SDLK_i 'i' i | |
61 SDLK_j 'j' j | |
62 SDLK_k 'k' k | |
63 SDLK_l 'l' l | |
64 SDLK_m 'm' m | |
65 SDLK_n 'n' n | |
66 SDLK_o 'o' o | |
67 SDLK_p 'p' p | |
68 SDLK_q 'q' q | |
69 SDLK_r 'r' r | |
70 SDLK_s 's' s | |
71 SDLK_t 't' t | |
72 SDLK_u 'u' u | |
73 SDLK_v 'v' v | |
74 SDLK_w 'w' w | |
75 SDLK_x 'x' x | |
76 SDLK_y 'y' y | |
77 SDLK_z 'z' z | |
78 SDLK_DELETE '^?' delete | |
79 SDLK_KP0 keypad 0 | |
80 SDLK_KP1 keypad 1 | |
81 SDLK_KP2 keypad 2 | |
82 SDLK_KP3 keypad 3 | |
83 SDLK_KP4 keypad 4 | |
84 SDLK_KP5 keypad 5 | |
85 SDLK_KP6 keypad 6 | |
86 SDLK_KP7 keypad 7 | |
87 SDLK_KP8 keypad 8 | |
88 SDLK_KP9 keypad 9 | |
89 SDLK_KP_PERIOD '.' keypad period | |
90 SDLK_KP_DIVIDE '/' keypad divide | |
91 SDLK_KP_MULTIPLY '*' keypad multiply | |
92 SDLK_KP_MINUS '-' keypad minus | |
93 SDLK_KP_PLUS '+' keypad plus | |
94 SDLK_KP_ENTER '\\r' keypad enter | |
95 SDLK_KP_EQUALS '=' keypad equals | |
96 SDLK_UP up arrow | |
97 SDLK_DOWN down arrow | |
98 SDLK_RIGHT right arrow | |
99 SDLK_LEFT left arrow | |
100 SDLK_INSERT insert | |
101 SDLK_HOME home | |
102 SDLK_END end | |
103 SDLK_PAGEUP page up | |
104 SDLK_PAGEDOWN page down | |
105 SDLK_F1 F1 | |
106 SDLK_F2 F2 | |
107 SDLK_F3 F3 | |
108 SDLK_F4 F4 | |
109 SDLK_F5 F5 | |
110 SDLK_F6 F6 | |
111 SDLK_F7 F7 | |
112 SDLK_F8 F8 | |
113 SDLK_F9 F9 | |
114 SDLK_F10 F10 | |
115 SDLK_F11 F11 | |
116 SDLK_F12 F12 | |
117 SDLK_F13 F13 | |
118 SDLK_F14 F14 | |
119 SDLK_F15 F15 | |
120 SDLK_NUMLOCK numlock | |
121 SDLK_CAPSLOCK capslock | |
122 SDLK_SCROLLOCK scrollock | |
123 SDLK_RSHIFT right shift | |
124 SDLK_LSHIFT left shift | |
125 SDLK_RCTRL right ctrl | |
126 SDLK_LCTRL left ctrl | |
127 SDLK_RALT right alt | |
128 SDLK_LALT left alt | |
129 SDLK_RMETA right meta | |
130 SDLK_LMETA left meta | |
131 SDLK_LSUPER left windows key | |
132 SDLK_RSUPER right windows key | |
133 SDLK_MODE mode shift | |
134 SDLK_HELP help | |
135 SDLK_PRINT print-screen | |
136 SDLK_SYSREQ SysRq | |
137 SDLK_BREAK break | |
138 SDLK_MENU menu | |
139 SDLK_POWER power | |
140 SDLK_EURO euro\fR | |
141 .fi | |
142 | |
143 | |
144 .SH "SDL modifier definitions" | |
145 .PP | |
146 \fBSDL Modifier Meaning\fR | |
147 .nf | |
148 \f(CWKMOD_NONE No modifiers applicable | |
149 KMOD_NUM Numlock is down | |
150 KMOD_CAPS Capslock is down | |
151 KMOD_LCTRL Left Control is down | |
152 KMOD_RCTRL Right Control is down | |
153 KMOD_RSHIFT Right Shift is down | |
154 KMOD_LSHIFT Left Shift is down | |
155 KMOD_RALT Right Alt is down | |
156 KMOD_LALT Left Alt is down | |
157 KMOD_CTRL A Control key is down | |
158 KMOD_SHIFT A Shift key is down | |
159 KMOD_ALT An Alt key is down\fR | |
160 .fi | |
161 |