Mercurial > sdl-ios-xcode
annotate BUGS @ 1629:ef4a796e7f24
Fixed bug #55
From Christian Walther:
When writing my patch for #12, I ended up doing all sorts of changes to the way
application/window activating/deactivating is handled in the Quartz backend,
resulting in the attached patch. It does make the code a bit cleaner IMHO, but
as it might be regarded as a case of "if it ain't broken, don't fix it" I'd
like to hear other people's opinion about it. Please shout if some change
strikes you as unnecessary or wrong, and I'll explain the reasons behind it. As
far as I tested it, it does not introduce any new bugs, but I may well have
missed some.
- The most fundamental change (that triggered most of the others) is irrelevant
for the usual single-window SDL applications, it only affects the people who
are crazy enough to display other Cocoa windows alongside the SDL window (I'm
actually doing this currently, although the additional window only displays
debugging info and won't be present in the final product): Before, some things
were done on the application becoming active, some on the window becoming key,
and some on the window becoming main. Conceptually, all these actions belong to
the window becoming key, so that's what I implemented. However, since in a
single-window application these three events always happen together, the
previous implementation "ain't broken".
- This slightly changed the meaning of the SDL_APPMOUSEFOCUS flag from
SDL_GetAppState(): Before, it meant "window is main and mouse is inside window
(or mode is fullscreen)". Now, it means "window is key and mouse is inside
window (or mode is fullscreen)". It makes more sense to me that way. (See
http://developer.apple.com/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html
for a discussion of what key and main windows are.) The other two flags are
unchanged: SDL_APPACTIVE = application is not hidden and window is not
minimized, SDL_APPINPUTFOCUS = window is key (or mode is fullscreen).
- As a side effect, the reorganization fixes the following two issues (and
maybe others) (but they could also be fixed in less invasive ways):
* A regression that was introduced in revision 1.42 of SDL_QuartzVideo.m
(http://libsdl.org/cgi/cvsweb.cgi/SDL12/src/video/quartz/SDL_QuartzVideo.m.diff?r1=1.41&r2=1.42)
(from half-desirable to undesirable behavior):
Situation: While in windowed mode, hide the cursor using
SDL_ShowCursor(SDL_DISABLE), move the mouse outside of the window so that the
cursor becomes visible again, and SDL_SetVideoMode() to a fullscreen mode.
What happened before revision 1.42: The cursor is visible, but becomes
invisible as soon as the mouse is moved (half-desirable).
What happens in revision 1.42 and after (including current CVS): The cursor is
visible and stays visible (undesirable).
What happens after my patch: The cursor is invisible from the beginning
(desirable).
* When the cursor is hidden and grabbed, switch away from the application using
cmd-tab (which ungrabs and makes the cursor visible), move the cursor outside
of the SDL window, then cmd-tab back to the application. In 1.2.8 and in the
current CVS, the cursor is re-grabbed, but it stays visible (immovable in the
middle of the window). With my patch, the cursor is correctly re-grabbed and
hidden. (For some reason, it still doesn't work correctly if you switch back to
the application using the dock instead of cmd-tab. I haven't been able to
figure out why. I can step over [NSCursor hide] being called in the debugger,
but it seems to have no effect.)
- The patch includes my patch for #12 (it was easier to obtain using cvs diff
that way). If you apply both of them, you will end up with 6 duplicate lines in
SDL_QuartzEvents.m.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 13 Apr 2006 14:17:48 +0000 |
parents | f12379c41042 |
children | c9aa6bcb26f3 |
rev | line source |
---|---|
0 | 1 |
2 All: | |
3 Audio rate conversion is only implemented by multiplying or dividing | |
4 by a power of two. This is a side-effect of the requirement that the | |
5 raw audio buffer size be a power of two, and can hopefully be fixed. | |
6 This means 8 KHz audio converted to 22 KHz ends up being 16 KHz. :-/ | |
7 | |
8 When the implementation is writing directly to video memory the mouse | |
9 cursor doesn't work properly. Applications which do this should use | |
10 their own mouse cursor and call SDL_ShowCursor(0) to hide the system | |
11 cursor. | |
12 | |
13 Linux: | |
14 Wide UNICODE character input (Kanji, etc.) is not yet supported. | |
15 It requires handling of keyboard mapping events and using the XIM | |
16 input translation extension. I will implement it as requested. | |
17 Latin-1 keyboard input works fine. | |
1178
9867f3d86e44
Real Unicode support for X11. Based on updated version of this patch:
Ryan C. Gordon <icculus@icculus.org>
parents:
931
diff
changeset
|
18 (UPDATE 04/06/2004: this bug is now fixed) |
0 | 19 |
27
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
20 The keyboard modifiers are not set to the correct state on startup. |
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
21 |
0 | 22 The AAlib, GGI, and SVGAlib video drivers are not heavily tested. |
23 | |
24 Win32: | |
25 The MCI driver can't tell if the CD-ROM drive is paused or stopped. | |
26 | |
27 The SDL_INIT_EVENTTHREAD flag is not supported on Win32 | |
28 (Idea: create a separate DirectInput polling thread) | |
29 The main purpose of this flag is for smooth cursor motion in | |
30 fullscreen environments. | |
31 | |
32 Wide UNICODE character input (Kanji, etc.) is not yet supported. | |
33 This requires the ToUnicode() API which is only implemented on | |
34 Windows NT/2000, not on Windows 95/98. | |
35 Latin-1 keyboard input works fine. | |
36 | |
37 Joysticks are only supported under the Win32 MultiMedia API, | |
38 DirectInput support is not yet implemented. | |
39 | |
40 BeOS: | |
41 BePPC is not supported, apparently not even by Be Inc. | |
42 | |
43 SDL_WM_GrabInput() is not implemented. | |
44 Does anyone know how to do this? SDL_WM_GrabInput() is designed | |
45 to prevent the user from switching input and mouse focus away from | |
46 the SDL application. | |
47 | |
48 Continuous relative mouse motion is not implemented. | |
49 | |
50 Wide UNICODE character input (Kanji, etc.) has not been tested. | |
51 Latin-1 keyboard input works fine. | |
52 | |
53 MacOS: | |
54 Palette handling isn't implemented in windowed mode yet. | |
55 | |
56 Audio hasn't been extensively tested, in particular the locking | |
57 isn't implemented and mixer routines may not call malloc() or free() | |
58 because they are called at interrupt time. | |
59 | |
60 SDL_WM_GrabInput() is not implemented. | |
61 Does anyone know how to do this? SDL_WM_GrabInput() is designed | |
62 to prevent the user from switching input and mouse focus away from | |
63 the SDL application. | |
64 | |
65 Continuous relative mouse motion is not implemented. | |
66 | |
67 SDL_AddTimer() and SDL_RemoveTimer() haven't been implemented yet. | |
68 | |
69 Not all of the keys are properly recognized on the keyboard. | |
70 | |
1621 | 71 Mac OS X: |
47
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
27
diff
changeset
|
72 Depth switching for windowed mode isn't implemented yet. |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
27
diff
changeset
|
73 |
0 | 74 Palette handling isn't implemented in windowed mode yet. |
47
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
27
diff
changeset
|
75 |
390
19e73568a75c
Date: Sat, 1 Jun 2002 17:56:45 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
76 Command-line arguments dialog is not implemented yet. |
0 | 77 |
47
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
27
diff
changeset
|
78 Fullscreen drawing has some artifacts. |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
27
diff
changeset
|
79 |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
27
diff
changeset
|
80 Fullscreen OpenGL for the software renderer is broken. |
0 | 81 |
47
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
27
diff
changeset
|
82 Some OpenGL parameters are not accounted for, for example color bits customization. |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
27
diff
changeset
|
83 |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
27
diff
changeset
|
84 Continuous mouse motion perhaps is not as smooth as it should be. |
0 | 85 |
47
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
27
diff
changeset
|
86 SDL_WM_GrabInput() is implemented, but it "freezes" the hardware |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
27
diff
changeset
|
87 cursor in the center of the window/screen. Also, mouse moved events |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
27
diff
changeset
|
88 are not generated, and the keyboard cannot be grabbed. |
0 | 89 |
1621 | 90 Mac OS X seems to have a broken pthread_cancel() implementation. |
931
abe872771687
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
777
diff
changeset
|
91 Actually, it just only has one cancellation point defined. |
abe872771687
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
777
diff
changeset
|
92 http://lists.apple.com/archives/darwin-development/2004/Jun/24/killingapthread.001.txt |
0 | 93 |
94 FreeBSD: | |
95 pthread_cancel() isn't supported by FreeBSD 3.X, so threads don't | |
96 work on versions of FreeBSD earlier than 4.0. | |
97 | |
98 The CD-ROM handling doesn't work completely. | |
99 | |
100 Wide UNICODE character input (Kanji, etc.) is not yet supported. | |
101 It requires handling of keyboard mapping events and using the XIM | |
102 input translation extension. I will implement it as requested. | |
103 Latin-1 keyboard input works fine. | |
1178
9867f3d86e44
Real Unicode support for X11. Based on updated version of this patch:
Ryan C. Gordon <icculus@icculus.org>
parents:
931
diff
changeset
|
104 (UPDATE 04/06/2004: this bug is now fixed but needs testing) |
9867f3d86e44
Real Unicode support for X11. Based on updated version of this patch:
Ryan C. Gordon <icculus@icculus.org>
parents:
931
diff
changeset
|
105 |
27
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
106 The keyboard modifiers are not set to the correct state on startup. |
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
107 |
0 | 108 Solaris: |
109 The joystick functions are not implemented yet. | |
110 | |
111 Wide UNICODE character input (Kanji, etc.) is not yet supported. | |
112 It requires handling of keyboard mapping events and using the XIM | |
113 input translation extension. I will implement it as requested. | |
114 Latin-1 keyboard input works fine. | |
1178
9867f3d86e44
Real Unicode support for X11. Based on updated version of this patch:
Ryan C. Gordon <icculus@icculus.org>
parents:
931
diff
changeset
|
115 (UPDATE 04/06/2004: this bug is now fixed but needs testing) |
9867f3d86e44
Real Unicode support for X11. Based on updated version of this patch:
Ryan C. Gordon <icculus@icculus.org>
parents:
931
diff
changeset
|
116 |
27
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
117 The keyboard modifiers are not set to the correct state on startup. |
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
118 |
0 | 119 IRIX: |
120 The CD-ROM handling doesn't work completely. | |
121 | |
122 The joystick functions are not implemented yet. | |
123 | |
124 Wide UNICODE character input (Kanji, etc.) is not yet supported. | |
125 It requires handling of keyboard mapping events and using the XIM | |
126 input translation extension. I will implement it as requested. | |
127 Latin-1 keyboard input works fine. | |
1178
9867f3d86e44
Real Unicode support for X11. Based on updated version of this patch:
Ryan C. Gordon <icculus@icculus.org>
parents:
931
diff
changeset
|
128 (UPDATE 04/06/2004: this bug is now fixed but needs testing) |
9867f3d86e44
Real Unicode support for X11. Based on updated version of this patch:
Ryan C. Gordon <icculus@icculus.org>
parents:
931
diff
changeset
|
129 |
27
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
130 The keyboard modifiers are not set to the correct state on startup. |
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
131 |
250
74a8f672f2f8
Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
172
diff
changeset
|
132 EPOC: |
74a8f672f2f8
Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
172
diff
changeset
|
133 Only Crystal version of Epoc/SymbianOS is currently supported. |
74a8f672f2f8
Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
172
diff
changeset
|
134 |
74a8f672f2f8
Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
172
diff
changeset
|
135 SDL is implemented in static library only. SDL uses static/global |
74a8f672f2f8
Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
172
diff
changeset
|
136 variables and that is not allowed in EPOC dll libraries. |
74a8f672f2f8
Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
172
diff
changeset
|
137 |
74a8f672f2f8
Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
172
diff
changeset
|
138 Sound is not yet supported. |
74a8f672f2f8
Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
172
diff
changeset
|
139 |
74a8f672f2f8
Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
172
diff
changeset
|
140 Joystick, OpenGL and cdrom is not supported (think about cdrom in a cell phone:-). |
74a8f672f2f8
Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
172
diff
changeset
|
141 |
74a8f672f2f8
Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
172
diff
changeset
|
142 No console output screen. Printing to stdout do not have any effect. |
74a8f672f2f8
Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
172
diff
changeset
|
143 |
663
8bedd6d61642
Date: Sat, 2 Aug 2003 16:22:51 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
571
diff
changeset
|
144 QNX: |
692
04dd6c6d7c30
Date: Fri, 15 Aug 2003 09:13:59 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
663
diff
changeset
|
145 Fullscreen switch doesn't work (disabled for now). |
663
8bedd6d61642
Date: Sat, 2 Aug 2003 16:22:51 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
571
diff
changeset
|
146 |
8bedd6d61642
Date: Sat, 2 Aug 2003 16:22:51 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
571
diff
changeset
|
147 |
0 | 148 OpenBSD: -= NOT YET SUPPORTED =- |
149 This is reported to work, but I haven't verified this. | |
150 | |
151 Wide UNICODE character input (Kanji, etc.) is not yet supported. | |
152 It requires handling of keyboard mapping events and using the XIM | |
153 input translation extension. I will implement it as requested. | |
154 Latin-1 keyboard input works fine. | |
1178
9867f3d86e44
Real Unicode support for X11. Based on updated version of this patch:
Ryan C. Gordon <icculus@icculus.org>
parents:
931
diff
changeset
|
155 (UPDATE 04/06/2004: this bug is now fixed but needs testing) |
9867f3d86e44
Real Unicode support for X11. Based on updated version of this patch:
Ryan C. Gordon <icculus@icculus.org>
parents:
931
diff
changeset
|
156 |
27
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
157 The keyboard modifiers are not set to the correct state on startup. |
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
158 |
0 | 159 OSF/Tru64: -= NOT YET SUPPORTED =- |
160 The audio functions are not implemented yet. | |
161 | |
162 Joysticks and CD-ROM functions are not implemented yet. | |
163 | |
164 Wide UNICODE character input (Kanji, etc.) is not yet supported. | |
165 It requires handling of keyboard mapping events and using the XIM | |
166 input translation extension. I will implement it as requested. | |
167 Latin-1 keyboard input works fine. | |
1178
9867f3d86e44
Real Unicode support for X11. Based on updated version of this patch:
Ryan C. Gordon <icculus@icculus.org>
parents:
931
diff
changeset
|
168 (UPDATE 04/06/2004: this bug is now fixed but needs testing) |
9867f3d86e44
Real Unicode support for X11. Based on updated version of this patch:
Ryan C. Gordon <icculus@icculus.org>
parents:
931
diff
changeset
|
169 |
27
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
170 The keyboard modifiers are not set to the correct state on startup. |
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
171 |
0 | 172 AIX: -= NOT YET SUPPORTED =- |
173 This port has only been tested with AIX 4.3.3 | |
174 | |
175 The OpenGL support doesn't work yet. | |
176 | |
177 The joystick subsystem isn't implemented yet. | |
178 | |
179 Endian detection doesn't work yet - needs a unique CPP symbol. | |
180 | |
181 Wide UNICODE character input (Kanji, etc.) is not yet supported. | |
182 It requires handling of keyboard mapping events and using the XIM | |
183 input translation extension. I will implement it as requested. | |
184 Latin-1 keyboard input works fine. | |
1178
9867f3d86e44
Real Unicode support for X11. Based on updated version of this patch:
Ryan C. Gordon <icculus@icculus.org>
parents:
931
diff
changeset
|
185 (UPDATE 04/06/2004: this bug is now fixed but needs testing) |
9867f3d86e44
Real Unicode support for X11. Based on updated version of this patch:
Ryan C. Gordon <icculus@icculus.org>
parents:
931
diff
changeset
|
186 |
27
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
187 The keyboard modifiers are not set to the correct state on startup. |
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
188 |
0 | 189 The AIX port was done by Carsten.Griwodz@KOM.tu-darmstadt.de |
190 More information on this port is available at: | |
191 http://www.kom.e-technik.tu-darmstadt.de/~griff/SDL/ | |
192 | |
193 AmigaOS: -= NOT YET SUPPORTED =- | |
194 The OpenGL support isn't implemented yet. | |
195 | |
196 SDL_WM_GrabInput() is not implemented. | |
197 Does anyone know how to do this? SDL_WM_GrabInput() is designed | |
198 to prevent the user from switching input and mouse focus away from | |
199 the SDL application. | |
200 | |
201 Continuous relative mouse motion is not implemented. | |
202 | |
203 The AmigaOS port was done by Gabriele.Greco@galactica.it | |
250
74a8f672f2f8
Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
172
diff
changeset
|
204 |