[SDL] Problems with SDL_PollEvent

STenyaK (Bruno González) stenyak at gmx.net
Wed Aug 11 17:26:08 PDT 2004


On Wed, 11 Aug 2004 23:36:26 +0300, Petri Latvala <adrinael at nuclearzone.org> wrote:

> Are you initializing SDL yourself or are you letting Ogre do it? And are
> you using the SDL backend to Ogre on Windows? Ogre might "steal" your
> events...

What i do through the program is basically this:
     if (SDL_Init (SDL_INIT_TIMER) < 0)
     {
         log->format (LOG_ERROR, "Couldn't initialize SDL: %s\n", SDL_GetError ());
     }
//then i initialize ogre with all its components....
//...
//then i render things (i'm not using ogre's loop), calc. physics, process input, etc... in a loop (the "main loop")
//I don't initialize any of the ogres input system, unless it does by default and i therefore have to disable it manually (which i don't).
//then stop sdl:
SDL_Quit ();
-- 
Saludos,
      STenyaK

-----------------------------------
MAIL= stenyak@@@gmx...net
ICQ#= 153709484
SITE= http://kwh.iespana.es
Motorsport - For Simracers, by Simracers - http://motorsport-sim.org




More information about the SDL mailing list