GUI interfering with event listener...

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
communism
Posts: 8
Joined: Tue Mar 13, 2012 1:59 pm

GUI interfering with event listener...

Post by communism »

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?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: GUI interfering with event listener...

Post by hybrid »

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.
communism
Posts: 8
Joined: Tue Mar 13, 2012 1:59 pm

Re: GUI interfering with event listener...

Post by communism »

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.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: GUI interfering with event listener...

Post by CuteAlien »

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
Post Reply