Chat User-event?

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
Lo_Ord
Posts: 12
Joined: Thu Apr 27, 2006 2:24 pm

Chat User-event?

Post by Lo_Ord »

Hi!

I have a bigger question:
I want to implement an own chat - user - event for our game, so if someone sends a chat message, the eventreceiver calls the needed functions (send it to others, print it on screen, etc...)

So, how do I define an own user-event? Do I have to create a new class with a certain IEventType - Interface?

How is the event called then?

and how do I call the new event-type in the eventreceiver?

Code: Select all

if (event.EventType == irr::EET_USER_EVENT)
{
   if(event.UserEvent.UserData1 == blah)
   {
       blah;
   }
}
Regards & TiA

Lo_Ord
Post Reply