How to use MyNewSceneManger->postEventFromUser?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
VK_
Posts: 2
Joined: Thu Jun 07, 2018 10:21 am

How to use MyNewSceneManger->postEventFromUser?

Post by VK_ »

Hello everyone,

I'm currently facing a tricky problem in my adventure in irrlicht discovery,

My game has multiple indepented scenes that I created from smgr->CreateNewSceneManger();
for the following reason scene1 = menu ; scene2 = game
But as the documentation said about the member function CreateNewSceneManger();
I have to manually put event that i wanna receive in this scene with the postEventFromUser() function
otherwise all my events will be catched in the main scene that i use only for creating of others childs scenes.

Therefore my question is how do I a create or put an event in my scene1->postEventFromUser(const SEvent &event) function.
I read all the .h concerning this topic but i still dont understand how to do this, for example if i wanna receive all keyboard input in my scene1, what I need to do ?

Thank you in advance,
VK_
VK_
Posts: 2
Joined: Thu Jun 07, 2018 10:21 am

Re: How to use MyNewSceneManger->postEventFromUser?

Post by VK_ »

Oh my god man you're amazing, thank you very much !
Post Reply