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

Re: [pygame] Blocking events problem?



> Yep, apparently adding a dummy
> 
> pygame.event.set_blocked ( MOUSEMOTION ) 
> 
> somewhere inside the main loop seems to disable USEREVENT:s
> from being received by pygame.event.poll (). Is this some known
> issue or have I done something wrong?

it is neither. you've done nothing incorrect, but this is
not a known issue. i'll look into this real soon. for now
i guess just don't block the MOUSEMOTION events?


> Also, music seems to sometimes not stop when the game
> terminates. The game just says it got terminated ok, but
> still plays music. I think I should do an explicit stop()
> on the music before exiting.

i just looked at the code for this, and i'm sort of scared
that the music actually plays after pygame quits. pygame
deletes the music object and shuts down SDL_mixer when it
quits, i can't see how music is still playing? nevertheless,
i just added a Mix_HaltMusic(); call into the mixer shutdown
code, so if anything that should get it, it certainly can't
hurt.



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