[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] Music and events




Hi all,

This list has been quiet for too long, so I'll post something silly. :)
I've had slight problems with getting USEREVENT:s delivered in our
application, and the problem's still there. I'm lost, and I think Pete is
too...

Anyway, running CVS from last week now (after Pete did some fixes to the
event handling), and it still won't work ok. I *can* post USEREVENT:s to
the pygame event queue using pygame.event.post(). Works like a charm. But
as soon as I want to start blocking some events (MOUSEMOTION) it suddenly
stops working. If I don't use pygame.event.set_blocked() and
pygame.event.set_allowed() at all it works ok. As soon as I enable two
commented out pygame.event.set_blocked() and one
pygame.event.set_allowed() it stops. No USEREVENT:s are delivered anymore.
I don't see what I could do wrong except from giving bad arguments to the
calls.

I looked through the SDL lists to see if there was anybody else with
similar problems (in C/C++ of course), but I didn't find anything.
Currently we're forced to take the penalty hit that comes from throwing
all MOUSEMOTION:s into the state machine and letting them get discarded
there (after som processing and a few method calls).


There was some problem with the music too wrt stopping it. They seem to
still be there in the version I have. I stop() the music before exiting,
and our app exits proberly, at least it executed the last line available
(a single 'print'). The music stops, but the window won't disappear. It
does not get repainted anymore either, so it seems like something doesn't
quite exit when it's supposed to? I always have to Ctrl-C it. I haven't
tried waiting more than, say, 10-20 seconds, so it could be that it would
eventually terminate fully.

All is not bad in the world though. The sun at least shines and I've got
my first ever real 4 week vacation coming up next week.

-----------------------------------------------------------------------------
      Real children don't go hoppity-skip unless they are on drugs.
           -- Susan Sto Helit, in Hogfather (Terry Pratchett)

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org