On Tue, 23 Sep 2003, Michael wrote:
Is there anything like events for devices in PyGame? Something like
events to let your program know when the cd/dvd drive has been opened
or
closed. Is there any other common Pygame method to watch for disc
changes? If not, would there be any chance of getting that added
sometime in the near future? Thanks.
I'd say it's up to you to talk nicely to your OS using some platform
specific methods. It has to also work under Linux, OS X and even
Windows,
so it's not trivial.
It's really easy to do on OS X, platform specifically.. but I bet
there's more than one competing implementation for the other unix-like
operating systems so it would be hard to do it for those. I'd imagine
Windows has an API for it, but I've never seen it personally.