[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] mouse.set_visible() fails on mac os x in fullscreen mode if...
Note: This post concerns tests run on Mac OS X 10.4 with pygame 1.7.0
(from http://pythonmac.org/packages/) and debian linux unstable with
pygame 1.7.1-release.
In general, if you call pygame.mouse.set_visible() before pygame.init
(), you get this error:
pygame.error: video system not initialized
On the mac, when running in fullscreen mode, if you call
pygame.mouse.set_visible(False) AFTER pygame.init() but BEFORE
pygame.display.set_mode(), you get no error, but the following combo:
the call fails, but the system doesn't know that it did, i.e. it
thinks the mouse-pointer is off. So subsequent calls to
pygame.mouse.set_visible(False) also fail since they're ignored
(unless you precede them with pygame.mouse.set_visible(True), in
which case they work).
On linux the call succeeds. This makes me think that its not working
on the mac is a bug, not merely the absence of an error message.
Best,
Aaron Geller