[SDL] SDL, MacOS & OpenGL

Michael L. sdl at tossed.org
Sun Jun 26 13:03:57 PDT 2005


Hello

I have tried SDL 1.2.8 on tiger(macosx10.4) and I can't get 
SDL_WM_GrabInput() to work on fullscreen mode. It works with previous 
macos version 10.3 and with 10.4 if not fullscreen.

The call
SDL_WM_GrabInput(SDL_GRAB_ON)
returns SDL_GRAB_OFF and I don't receive mouse relative positions 
beyond screen edege.

I got this even with this simple code which works on 10.3 and 10.4 not 
fullscreen

-------------------------------------
     SDL_Init(SDL_INIT_VIDEO);
     SDL_Surface *screen = NULL;
     screen=SDL_SetVideoMode(800,600,32,SDL_DOUBLEBUF|SDL_FULLSCREEN);
     err=SDL_WM_GrabInput(SDL_GRAB_ON);
     if (err == SDL_GRAB_ON) {
         printf("Grab OK");
     } else {
         printf("Grab Fails [%d %d]\n",err,SDL_GRAB_OFF);
     }
     SDL_ShowCursor(SDL_DISABLE);
--------------------------------------

Do I forget something?
Could someone confirm that this should work?

Thanks

--------------
Mikel





More information about the SDL mailing list