Rob Shortt wrote:

Please, lose the whiny attitude, we DO care. Not a lot of people have this setup to test or debug so you may have to learn to dig through some code.


Freevo doesn't explicitly do anything with the mouse, except for hide the pointer, we don't support mouse input. So, the SDL guys say it must be in Freevo's implimentation. I guess that leaves pygame since that's what's in between.

Try this patch to pygame. I can't test it at all but it compiles on my machine. This will make pygame's mouse module bail on init if SDL_NOMOUSE is set. This may make other bad things happen I don't know. If so you will have to find somewhere else in pygame to do this. When pygame.init() is called it just calls init() on some other pygame modules. I think we call pygame.init() (src/osd.py) but instead maybe we could call pygame.display.init() and init() on anything else we need (explicitly). I seem to remember doing this before but running into problems.

Index: src/mouse.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/games/pygame/src/mouse.c,v
retrieving revision 1.11
diff -u -r1.11 mouse.c
--- src/mouse.c 23 Oct 2003 17:17:17 -0000      1.11
+++ src/mouse.c 23 Feb 2005 14:28:28 -0000
@@ -340,6 +340,9 @@
 PYGAME_EXPORT
 void initmouse(void)
 {
+       if (getenv("SDL_NOMOUSE") != NULL)
+               return;
+
        PyObject *module, *dict;

     /* create the module */


good luck, -Rob


Is there a way to just dump pygame entirely? I don't use it.

Thanks for actually replying.
Mike


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Freevo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to