Can someone explain to me the details about the "event" keyword?
I am confused with this code (event->event). let say I have this code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
void passAnEvent(TEvent* event) //TEvent handles/controls the event
{
switch(event->event) //this is also equal to (*event).event right?
//so why is there two event? the second event is
//for the TEvent class? and the (*event) is the
//next event depending on the user?
{
case DO_THIS_FOR_EXAMPLE:
eventPass(event);//...
break;
//...
}
}