postEventFromUser()

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
zerochen
Posts: 273
Joined: Wed Jan 07, 2009 1:17 am
Location: Germany

postEventFromUser()

Post by zerochen »

hi
can you change the function postEventFromUser in IGUIEnvironment?

i have a menu class that can set the active menu
(here a menu is a tab)
if i change the menu no event is posting so i want to do this with the postEventFromUser method
but this is not allowed.
can you change the code in postEventFromUser from:

Code: Select all

case EET_GUI_EVENT:
// hey, why is the user sending gui events..?
break;
to:

Code: Select all

case EET_GUI_EVENT:
this->OnEvent(event);
break;
for example or isn t this a good idea?
thanks
Post Reply