Eventreceiver block animator OnEvent

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
RVM
Posts: 13
Joined: Sun Mar 27, 2011 6:14 pm
Location: France
Contact:

Eventreceiver block animator OnEvent

Post by RVM »

Hello,

I have a problem with the eventreceiver :
My program have a MainEventreceiver for general use (GUI, some GameState ) and a camera animator.
When I create my device with EventReceiver (or set), the OnEvent at my animator don't run..

Can someone enlighten me ?
RVM
//When I wrote this, only God and I understood what I was doing
//Now, God only knows
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Eventreceiver block animator OnEvent

Post by REDDemon »

some code about what are you doing? There are several examples in Irrlicht SDK wich covers animators and events. They are enough to use them correctly
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
CuteAlien
Admin
Posts: 9930
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Eventreceiver block animator OnEvent

Post by CuteAlien »

Sounds like you might return "true" in your eventreceiver. That marks events are finished and the camera animator will no longer receive them. So by default return false unless you want to ensure an event is not passed any further.
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
RVM
Posts: 13
Joined: Sun Mar 27, 2011 6:14 pm
Location: France
Contact:

Re: Eventreceiver block animator OnEvent

Post by RVM »

CuteAlien wrote:Sounds like you might return "true" in your eventreceiver. That marks events are finished and the camera animator will no longer receive them. So by default return false unless you want to ensure an event is not passed any further.
It was my case, thank you.

RVM
//When I wrote this, only God and I understood what I was doing
//Now, God only knows
Post Reply