Code: Select all
SEvent event;
event.EventType = EET_GUI_EVENT;
if (lastHovered)
{
event.GUIEvent.Caller = lastHovered;
event.GUIEvent.EventType = EGET_ELEMENT_LEFT;
lastHovered->OnEvent(event);
}
If I am receiving gui events and a try to use the Element variable I can't determine if it is valid or not...
I guess this struct can't have a constructor because it is in a union... so I'm not sure what should be done?
Thank you.