Mercurial > sdl-ios-xcode
annotate docs/html/guide.html @ 615:7ec821f3cbd0
Date: Thu, 17 Apr 2003 23:27:34 -0400
From: Darrell Walisser
Subject: Yet another OS X cursor bug
The synopsis:
1. Call SDL_ShowCursor(0);
2. Call SDL_SetVideoMode();
3. Call SDL_GetEvent();
3. Call SDL_ShowCursor(1);
The result: Sometimes the cursor doesn't come back! Ack! Oddly enough,
it does come back when mousing over the dock or clicking in the menu
bar. But that's besides the point.
The reason why this is happening is a flaw in the handling of
activation/deactivation events. The short explanation is that the
HideCursor() and ShowCursor() calls must be balanced, but if the cursor
was initially hidden, HideCursor() was called again on the activate
event - so now the next ShowCursor() fails (as does the next, and the
next, for some reason).
So, here's the patch. All it does is keep track of the
HideCursor()/ShowCursor() calls so that they will always be balanced.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 20 Apr 2003 05:41:16 +0000 |
parents | 55f1f1b3e27d |
children | 355632dca928 |
rev | line source |
---|---|
0 | 1 <HTML |
2 ><HEAD | |
3 ><TITLE | |
4 >SDL Guide</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="PREVIOUS" | |
13 TITLE="SDL Library Documentation" | |
14 HREF="index.html"><LINK | |
15 REL="NEXT" | |
16 TITLE="Preface" | |
17 HREF="guidepreface.html"></HEAD | |
18 ><BODY | |
19 CLASS="PART" | |
20 BGCOLOR="#FFF8DC" | |
21 TEXT="#000000" | |
22 LINK="#0000ee" | |
23 VLINK="#551a8b" | |
24 ALINK="#ff0000" | |
25 ><DIV | |
26 CLASS="NAVHEADER" | |
27 ><TABLE | |
28 WIDTH="100%" | |
29 BORDER="0" | |
30 CELLPADDING="0" | |
31 CELLSPACING="0" | |
32 ><TR | |
33 ><TH | |
34 COLSPAN="3" | |
35 ALIGN="center" | |
36 >SDL Library Documentation</TH | |
37 ></TR | |
38 ><TR | |
39 ><TD | |
40 WIDTH="10%" | |
41 ALIGN="left" | |
42 VALIGN="bottom" | |
43 ><A | |
44 HREF="index.html" | |
45 >Prev</A | |
46 ></TD | |
47 ><TD | |
48 WIDTH="80%" | |
49 ALIGN="center" | |
50 VALIGN="bottom" | |
51 ></TD | |
52 ><TD | |
53 WIDTH="10%" | |
54 ALIGN="right" | |
55 VALIGN="bottom" | |
56 ><A | |
57 HREF="guidepreface.html" | |
58 >Next</A | |
59 ></TD | |
60 ></TR | |
61 ></TABLE | |
62 ><HR | |
63 ALIGN="LEFT" | |
64 WIDTH="100%"></DIV | |
65 ><DIV | |
66 CLASS="PART" | |
67 ><A | |
68 NAME="GUIDE" | |
69 ></A | |
70 ><DIV | |
71 CLASS="TITLEPAGE" | |
72 ><H1 | |
73 CLASS="TITLE" | |
74 >I. SDL Guide</H1 | |
75 ><DIV | |
76 CLASS="TOC" | |
77 ><DL | |
78 ><DT | |
79 ><B | |
80 >Table of Contents</B | |
81 ></DT | |
82 ><DT | |
83 ><A | |
84 HREF="guidepreface.html" | |
85 >Preface</A | |
86 ></DT | |
87 ><DT | |
88 >1. <A | |
89 HREF="guidethebasics.html" | |
90 >The Basics</A | |
91 ></DT | |
92 ><DT | |
93 >2. <A | |
94 HREF="guidevideo.html" | |
95 >Graphics and Video</A | |
96 ></DT | |
97 ><DT | |
98 >3. <A | |
99 HREF="guideinput.html" | |
100 >Input handling</A | |
101 ></DT | |
102 ><DT | |
103 >4. <A | |
104 HREF="guideexamples.html" | |
105 >Examples</A | |
106 ></DT | |
107 ></DL | |
108 ></DIV | |
109 ></DIV | |
110 ></DIV | |
111 ><DIV | |
112 CLASS="NAVFOOTER" | |
113 ><HR | |
114 ALIGN="LEFT" | |
115 WIDTH="100%"><TABLE | |
116 WIDTH="100%" | |
117 BORDER="0" | |
118 CELLPADDING="0" | |
119 CELLSPACING="0" | |
120 ><TR | |
121 ><TD | |
122 WIDTH="33%" | |
123 ALIGN="left" | |
124 VALIGN="top" | |
125 ><A | |
126 HREF="index.html" | |
127 >Prev</A | |
128 ></TD | |
129 ><TD | |
130 WIDTH="34%" | |
131 ALIGN="center" | |
132 VALIGN="top" | |
133 ><A | |
134 HREF="index.html" | |
135 >Home</A | |
136 ></TD | |
137 ><TD | |
138 WIDTH="33%" | |
139 ALIGN="right" | |
140 VALIGN="top" | |
141 ><A | |
142 HREF="guidepreface.html" | |
143 >Next</A | |
144 ></TD | |
145 ></TR | |
146 ><TR | |
147 ><TD | |
148 WIDTH="33%" | |
149 ALIGN="left" | |
150 VALIGN="top" | |
151 >SDL Library Documentation</TD | |
152 ><TD | |
153 WIDTH="34%" | |
154 ALIGN="center" | |
155 VALIGN="top" | |
156 > </TD | |
157 ><TD | |
158 WIDTH="33%" | |
159 ALIGN="right" | |
160 VALIGN="top" | |
161 >Preface</TD | |
162 ></TR | |
163 ></TABLE | |
164 ></DIV | |
165 ></BODY | |
166 ></HTML | |
167 > |