Whever I add a gui to my project, it seems that my event listener doesn't function at all. I've reproduced this error with CEGUI and the built in Irrlicht gui. I'm thinking it must have something to do with the fact that the GUI system is intecepting events before the event listener can get ahold of them.
Any thoughts? Anyone else encountered this bug?
GUI interfering with event listener...
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: GUI interfering with event listener...
No, you get the events first to your own receiver. And only those for which you return false are passed on to the GUI handling.
Re: GUI interfering with event listener...
Yes but my event receiver doesn't work the second I implement a GUI window via either method. I've done tests that output messages if a certain character is pressed. Pre-GUI everything works fine upon hitting the specified key, post-GUI the character press is not recognized.
I think its a bug.
I think its a bug.
Re: GUI interfering with event listener...
If you suspect it's a bug then try to make an example where we can reproduce the bug. I mean many of us use the eventreceivers with gui (including several examples in Irrlicht doing that), so it's not a general bug, but something that only happens in your specific situation. Which means we can only help if we have the exact source-code to reproduce your problem.
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