SDL events not working with Irrlicht

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
sabotage3d
Posts: 13
Joined: Sat Aug 16, 2014 3:40 pm

SDL events not working with Irrlicht

Post by sabotage3d »

Hi I am having this problem under IOS.
I am creating GLES2 device with Irrlicht and I am passing the window handle from SDL2 .
The problem is that when I pass the handle SDL no longer registers any events other than SDL_APP_DIDENTERFOREGROUND and SDL_APP_DIDENTERBACKGROUND . But I can see the models and UI's rendering. If I remove this line

Code: Select all

param.WindowId = reinterpret_cast<void *>(info.info.uikit.window);
I got black screen but the events do register. Any ideas ?

Code: Select all

   SIrrlichtCreationParameters param;
   param.DriverType = EDT_OGLES2;
   param.WindowSize = dimension2d<u32>(displayMode.w,displayMode.h);
   param.IgnoreInput= true;
   param.WindowId = reinterpret_cast<void *>(info.info.uikit.window);
   param.Bits = 24;
   param.ZBufferBits = 16;
   param.AntiAlias  = 0;
   param.EventReceiver = NULL;
   
   IrrlichtDevice *device = createDeviceEx(param);
 
Thanks in advance,

Alex
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: SDL events not working with Irrlicht

Post by Nadro »

SDL2 isn't supported, thats why you may see some problems.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Post Reply