I added 2 images and several controls like buttons or scroll bars to my program, and found after a couple of operations, the program will never response to any GUI events.
Finally, I found the problem in CGUIEnvironment::postEventFromUser and the value "Focus" is one of my images. Since CGUIImage doesn't override OnEvent in IGUIElement, it won't set event as EET_GUI_EVENT -- that's the reason why after some operations (within these, focus was set to one of my images), I can't get GUI event...
Is this a bug? Or I missed some point when I used Irrlicht GUI elements? Thx for your help!
A GUI Bug for CGUIImage?
Are you using version 1.3.1? That had some focus problems which are already fixed in svn and will be solved in the next version.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm