Mercurial > sdl-ios-xcode
annotate docs/html/sdlsyswmevent.html @ 664:abfdc08eb289
Date: Sun, 3 Aug 2003 22:07:57 +0200
From: Max Horn
Subject: SDL OSX fullscreen FIX
the attached patch fixes the fullscreen problems on SDL/OSX. The cause
was that click events are bounded by winRect. Now, winRect is set to
the size of the video surface. But if you e.g. request a 640x420
surface, you might get a 640x480 "real" surface. Still,
SDL_VideoSurface->h will be set to 420! Thus, the upper 60 pixels in my
example received no mouse down events.
My fix simply disables this clipping when in full screen mode - after
all, all clicks then should be inside the screen surface. Higher SDL
functions ensure that the coordinates then are clipped to 640x420. It
works fine in all my tests here. I don't know if it's the right thing
to do in multi screen scenarios, though.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 04 Aug 2003 01:00:30 +0000 |
parents | e5bc29de3f0a |
children | 355632dca928 |
rev | line source |
---|---|
0 | 1 <HTML |
2 ><HEAD | |
3 ><TITLE | |
4 >SDL_SysWMEvent</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="SDL Event Structures." | |
14 HREF="eventstructures.html"><LINK | |
15 REL="PREVIOUS" | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
16 TITLE="SDL_ExposeEvent" |
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
17 HREF="sdlexposeevent.html"><LINK |
0 | 18 REL="NEXT" |
19 TITLE="SDL_UserEvent" | |
20 HREF="sdluserevent.html"></HEAD | |
21 ><BODY | |
22 CLASS="REFENTRY" | |
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 | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
47 HREF="sdlexposeevent.html" |
0 | 48 >Prev</A |
49 ></TD | |
50 ><TD | |
51 WIDTH="80%" | |
52 ALIGN="center" | |
53 VALIGN="bottom" | |
54 ></TD | |
55 ><TD | |
56 WIDTH="10%" | |
57 ALIGN="right" | |
58 VALIGN="bottom" | |
59 ><A | |
60 HREF="sdluserevent.html" | |
61 >Next</A | |
62 ></TD | |
63 ></TR | |
64 ></TABLE | |
65 ><HR | |
66 ALIGN="LEFT" | |
67 WIDTH="100%"></DIV | |
68 ><H1 | |
69 ><A | |
70 NAME="SDLSYSWMEVENT" | |
71 >SDL_SysWMEvent</A | |
72 ></H1 | |
73 ><DIV | |
74 CLASS="REFNAMEDIV" | |
75 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
76 NAME="AEN4154" |
0 | 77 ></A |
78 ><H2 | |
79 >Name</H2 | |
80 >SDL_SysWMEvent -- Platform-dependent window manager event.</DIV | |
81 ><DIV | |
82 CLASS="REFSECT1" | |
83 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
84 NAME="AEN4157" |
0 | 85 ></A |
86 ><H2 | |
87 >Description</H2 | |
88 ><P | |
89 >The system window manager event contains a pointer to system-specific | |
90 information about unknown window manager events. If you enable this event | |
91 using | |
92 <A | |
93 HREF="sdleventstate.html" | |
94 ><TT | |
95 CLASS="FUNCTION" | |
96 >SDL_EventState()</TT | |
97 ></A | |
98 >, | |
99 it will be generated whenever unhandled events are received from the window | |
100 manager. This can be used, for example, to implement cut-and-paste in your | |
101 application. | |
102 | |
103 <PRE | |
104 CLASS="PROGRAMLISTING" | |
105 >typedef struct { | |
106 Uint8 type; /* Always SDL_SysWM */ | |
107 } SDL_SysWMEvent;</PRE | |
108 > | |
109 | |
110 If you want to obtain system-specific information about the window manager, | |
111 you can fill the version member of a <SPAN | |
112 CLASS="STRUCTNAME" | |
113 >SDL_SysWMinfo</SPAN | |
114 > | |
115 structure (details can be found in <TT | |
116 CLASS="FILENAME" | |
117 >SDL_syswm.h</TT | |
118 >, which must be included) using the <TT | |
119 CLASS="FUNCTION" | |
120 >SDL_VERSION()</TT | |
121 > macro found in | |
122 <TT | |
123 CLASS="FILENAME" | |
124 >SDL_version.h</TT | |
125 >, and pass it to the | |
126 function: | |
127 <DIV | |
128 CLASS="FUNCSYNOPSIS" | |
129 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
130 NAME="AEN4167" |
0 | 131 ></A |
132 ><P | |
133 ></P | |
134 ><P | |
135 ><CODE | |
136 ><CODE | |
137 CLASS="FUNCDEF" | |
138 >int <B | |
139 CLASS="FSFUNC" | |
140 >SDL_GetWMInfo</B | |
141 ></CODE | |
142 >(SDL_SysWMinfo *info);</CODE | |
143 ></P | |
144 ><P | |
145 ></P | |
146 ></DIV | |
147 ></P | |
148 ></DIV | |
149 ><DIV | |
150 CLASS="REFSECT1" | |
151 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
152 NAME="AEN4172" |
0 | 153 ></A |
154 ><H2 | |
155 >See Also</H2 | |
156 ><P | |
157 ><A | |
158 HREF="sdleventstate.html" | |
159 ><TT | |
160 CLASS="FUNCTION" | |
161 >SDL_EventState</TT | |
162 ></A | |
163 ></P | |
164 ></DIV | |
165 ><DIV | |
166 CLASS="NAVFOOTER" | |
167 ><HR | |
168 ALIGN="LEFT" | |
169 WIDTH="100%"><TABLE | |
170 WIDTH="100%" | |
171 BORDER="0" | |
172 CELLPADDING="0" | |
173 CELLSPACING="0" | |
174 ><TR | |
175 ><TD | |
176 WIDTH="33%" | |
177 ALIGN="left" | |
178 VALIGN="top" | |
179 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
180 HREF="sdlexposeevent.html" |
0 | 181 >Prev</A |
182 ></TD | |
183 ><TD | |
184 WIDTH="34%" | |
185 ALIGN="center" | |
186 VALIGN="top" | |
187 ><A | |
188 HREF="index.html" | |
189 >Home</A | |
190 ></TD | |
191 ><TD | |
192 WIDTH="33%" | |
193 ALIGN="right" | |
194 VALIGN="top" | |
195 ><A | |
196 HREF="sdluserevent.html" | |
197 >Next</A | |
198 ></TD | |
199 ></TR | |
200 ><TR | |
201 ><TD | |
202 WIDTH="33%" | |
203 ALIGN="left" | |
204 VALIGN="top" | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
205 >SDL_ExposeEvent</TD |
0 | 206 ><TD |
207 WIDTH="34%" | |
208 ALIGN="center" | |
209 VALIGN="top" | |
210 ><A | |
211 HREF="eventstructures.html" | |
212 >Up</A | |
213 ></TD | |
214 ><TD | |
215 WIDTH="33%" | |
216 ALIGN="right" | |
217 VALIGN="top" | |
218 >SDL_UserEvent</TD | |
219 ></TR | |
220 ></TABLE | |
221 ></DIV | |
222 ></BODY | |
223 ></HTML | |
224 > |