Mercurial > sdl-ios-xcode
annotate BUGS @ 1192:54aa9aa32327
To: sdl@libsdl.org
From: Christian Walther <cwalther@gmx.ch>
Date: Fri, 18 Nov 2005 23:39:02 +0100
Subject: [SDL] Mouse position bugs on Mac OS X
The attached patch fixes a few bugs in SDL related to the mouse position
in windowed mode on Mac OS X, reproduced using the attached minimal test
program - at least here on 10.3.9, with SDL CVS from today. Could anyone
test whether the bugs exist and are fixed by the patch on 10.2 and 10.4?
1. When using OpenGL, the vertical mouse positions obtained through
events or SDL_GetMouseState() are off by one.
2. When using OpenGL, SDL_WarpMouse() inverts the y coordinate.
3. Clicks on the topmost pixel row of the window are not recognized.
1 and 2 do not occur in non-OpenGL mode, while 3 does. All three only
occur in windowed mode, not in fullscreen.
The cause for 1 and 3 is that in Cocoa, "the location of the mouse"
seems to be defined as "the location of the top left corner of the mouse
pointer's hot pixel" (this is not documented, it's just what I found out
here), which together with the fact that Cocoa's usual y coordinates
start at the bottom and increase upwards means that the y coordinate of
the mouse runs from 1 to h, not from 0 to h-1, in a window of height h.
If it does work on 10.2 and 10.4 (I'll try to test it as soon as I can,
but at the moment all I have at hand is 10.3.9), can this be applied to
the CVS?
-Christian
To: sdl@libsdl.org
From: Christian Walther <cwalther@gmx.ch>
Date: Mon, 28 Nov 2005 10:41:51 +0100
Subject: [SDL] Re: Mouse position bugs on Mac OS X
I wrote:
> I'll try to test it as soon as I can, but at the moment all I have at hand is 10.3.9
So, here are the results of my tests (with patched and unpatched
frameworks compiled with Xcode 1.5 (gcc 3.3) on 10.3.9):
On 10.1.5, my test program doesn't run because of "Undefined symbols:
SDL undefined reference to _CGMainDisplayID expected to be defined in
Carbon". I guess not supporting 10.1 was a deliberate decision then and
that's OK with me.
On 10.2.8, 10.3.9, and 10.4.0, the bugs exist as described in my
original post and are fixed by my patch. That is, there is no difference
between pre/post 10.3 and the patched version works correctly in all
combinations of GL/non-GL and windowed/fullscreen.
I therefore recommend the patch for inclusion.
-Christian
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 28 Nov 2005 13:58:26 +0000 |
parents | 9867f3d86e44 |
children | f12379c41042 |
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 | |
71 MacOS 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 |
90 MacOS 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 |