Mercurial > sdl-ios-xcode
annotate docs/html/eventstructures.html @ 641:df178851293b
Date: 28 Jun 2003 22:42:52 +0100
From: Alan Swanson
Subject: Re: [SDL] New XFree 4.3 Video Mode Patch
I have a wee amendment that moves the qsort in set_best_resolution
to only occur after failing to find an exact match only. This would
make absolutely sure we get a user set mode.
While I've never had any problems for my normal resolutions (1280x1024,
1024x768, 800x600 & 640,480) while closely examining the output from
qsort I've noticed it doesn't seem to sort the modes fully. These is
one definite wrong at 1152x768 and a few that just look wrong to me.
From a program (attached) I made to examine this more easily. X has
sorted its mode list using the same method as ours (plus frequency),
and our user modes get inserted without any other movement.
On the patch I've made I've also changed cmpmodes to sort on vertical
resolution and then horizontal. Ie vertical is now most significant
bit.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 28 Jun 2003 21:52:26 +0000 |
parents | e5bc29de3f0a |
children | 355632dca928 |
rev | line source |
---|---|
0 | 1 <HTML |
2 ><HEAD | |
3 ><TITLE | |
4 >SDL Event Structures.</TITLE | |
5 ><META | |
6 NAME="GENERATOR" | |
55
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.64 |
0 | 8 "><LINK |
9 REL="HOME" | |
10 TITLE="SDL Library Documentation" | |
11 HREF="index.html"><LINK | |
12 REL="UP" | |
13 TITLE="Events" | |
14 HREF="event.html"><LINK | |
15 REL="PREVIOUS" | |
16 TITLE="Events" | |
17 HREF="event.html"><LINK | |
18 REL="NEXT" | |
19 TITLE="SDL_Event" | |
20 HREF="sdlevent.html"></HEAD | |
21 ><BODY | |
22 CLASS="SECT1" | |
23 BGCOLOR="#FFF8DC" | |
24 TEXT="#000000" | |
25 LINK="#0000ee" | |
26 VLINK="#551a8b" | |
27 ALINK="#ff0000" | |
28 ><DIV | |
29 CLASS="NAVHEADER" | |
30 ><TABLE | |
31 WIDTH="100%" | |
32 BORDER="0" | |
33 CELLPADDING="0" | |
34 CELLSPACING="0" | |
35 ><TR | |
36 ><TH | |
37 COLSPAN="3" | |
38 ALIGN="center" | |
39 >SDL Library Documentation</TH | |
40 ></TR | |
41 ><TR | |
42 ><TD | |
43 WIDTH="10%" | |
44 ALIGN="left" | |
45 VALIGN="bottom" | |
46 ><A | |
47 HREF="event.html" | |
48 >Prev</A | |
49 ></TD | |
50 ><TD | |
51 WIDTH="80%" | |
52 ALIGN="center" | |
53 VALIGN="bottom" | |
54 >Chapter 8. Events</TD | |
55 ><TD | |
56 WIDTH="10%" | |
57 ALIGN="right" | |
58 VALIGN="bottom" | |
59 ><A | |
60 HREF="sdlevent.html" | |
61 >Next</A | |
62 ></TD | |
63 ></TR | |
64 ></TABLE | |
65 ><HR | |
66 ALIGN="LEFT" | |
67 WIDTH="100%"></DIV | |
68 ><DIV | |
69 CLASS="SECT1" | |
70 ><H1 | |
71 CLASS="SECT1" | |
72 ><A | |
73 NAME="EVENTSTRUCTURES" | |
74 >SDL Event Structures.</A | |
75 ></H1 | |
76 ><DIV | |
77 CLASS="TOC" | |
78 ><DL | |
79 ><DT | |
80 ><B | |
81 >Table of Contents</B | |
82 ></DT | |
83 ><DT | |
84 ><A | |
85 HREF="sdlevent.html" | |
86 >SDL_Event</A | |
87 > — General event structure</DT | |
88 ><DT | |
89 ><A | |
90 HREF="sdlactiveevent.html" | |
91 >SDL_ActiveEvent</A | |
92 > — Application visibility event structure</DT | |
93 ><DT | |
94 ><A | |
95 HREF="sdlkeyboardevent.html" | |
96 >SDL_KeyboardEvent</A | |
97 > — Keyboard event structure</DT | |
98 ><DT | |
99 ><A | |
100 HREF="sdlmousemotionevent.html" | |
101 >SDL_MouseMotionEvent</A | |
102 > — Mouse motion event structure</DT | |
103 ><DT | |
104 ><A | |
105 HREF="sdlmousebuttonevent.html" | |
106 >SDL_MouseButtonEvent</A | |
107 > — Mouse button event structure</DT | |
108 ><DT | |
109 ><A | |
110 HREF="sdljoyaxisevent.html" | |
111 >SDL_JoyAxisEvent</A | |
112 > — Joystick axis motion event structure</DT | |
113 ><DT | |
114 ><A | |
115 HREF="sdljoybuttonevent.html" | |
116 >SDL_JoyButtonEvent</A | |
117 > — Joystick button event structure</DT | |
118 ><DT | |
119 ><A | |
120 HREF="sdljoyhatevent.html" | |
121 >SDL_JoyHatEvent</A | |
122 > — Joystick hat position change event structure</DT | |
123 ><DT | |
124 ><A | |
125 HREF="sdljoyballevent.html" | |
126 >SDL_JoyBallEvent</A | |
127 > — Joystick trackball motion event structure</DT | |
128 ><DT | |
129 ><A | |
130 HREF="sdlresizeevent.html" | |
131 >SDL_ResizeEvent</A | |
132 > — Window resize event structure</DT | |
133 ><DT | |
134 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
135 HREF="sdlexposeevent.html" |
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
136 >SDL_ExposeEvent</A |
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
137 > — Quit requested event</DT |
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
138 ><DT |
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
139 ><A |
0 | 140 HREF="sdlsyswmevent.html" |
141 >SDL_SysWMEvent</A | |
142 > — Platform-dependent window manager event.</DT | |
143 ><DT | |
144 ><A | |
145 HREF="sdluserevent.html" | |
146 >SDL_UserEvent</A | |
147 > — A user-defined event type</DT | |
148 ><DT | |
149 ><A | |
150 HREF="sdlquitevent.html" | |
151 >SDL_QuitEvent</A | |
152 > — Quit requested event</DT | |
153 ><DT | |
154 ><A | |
155 HREF="sdlkeysym.html" | |
156 >SDL_keysym</A | |
157 > — Keysym structure</DT | |
158 ><DT | |
159 ><A | |
160 HREF="sdlkey.html" | |
161 >SDLKey</A | |
162 > — Keysym definitions.</DT | |
163 ></DL | |
164 ></DIV | |
165 ></DIV | |
166 ><DIV | |
167 CLASS="NAVFOOTER" | |
168 ><HR | |
169 ALIGN="LEFT" | |
170 WIDTH="100%"><TABLE | |
171 WIDTH="100%" | |
172 BORDER="0" | |
173 CELLPADDING="0" | |
174 CELLSPACING="0" | |
175 ><TR | |
176 ><TD | |
177 WIDTH="33%" | |
178 ALIGN="left" | |
179 VALIGN="top" | |
180 ><A | |
181 HREF="event.html" | |
182 >Prev</A | |
183 ></TD | |
184 ><TD | |
185 WIDTH="34%" | |
186 ALIGN="center" | |
187 VALIGN="top" | |
188 ><A | |
189 HREF="index.html" | |
190 >Home</A | |
191 ></TD | |
192 ><TD | |
193 WIDTH="33%" | |
194 ALIGN="right" | |
195 VALIGN="top" | |
196 ><A | |
197 HREF="sdlevent.html" | |
198 >Next</A | |
199 ></TD | |
200 ></TR | |
201 ><TR | |
202 ><TD | |
203 WIDTH="33%" | |
204 ALIGN="left" | |
205 VALIGN="top" | |
206 >Events</TD | |
207 ><TD | |
208 WIDTH="34%" | |
209 ALIGN="center" | |
210 VALIGN="top" | |
211 ><A | |
212 HREF="event.html" | |
213 >Up</A | |
214 ></TD | |
215 ><TD | |
216 WIDTH="33%" | |
217 ALIGN="right" | |
218 VALIGN="top" | |
219 >SDL_Event</TD | |
220 ></TR | |
221 ></TABLE | |
222 ></DIV | |
223 ></BODY | |
224 ></HTML | |
225 > |