I was wondering if there is a good way to allow mouse over affects in the irrlicht GUI. Normally, when an element is 'focussed' no other elements receive EMIE_MOUSE_MOVED events (particularly, the Hovered element does not).
I *fixed* it by changing the CGUIEnvironment class's postEventFromUser method on line 508:
Code: Select all
// sending input to focus
if (Focus && Focus->OnEvent(event))
return true;
// focus could have died in last call
if (/*!Focus &&*/ Hovered) // commented out the '!Focus &&' [508]
return Hovered->OnEvent(event);
Can anyone tell me what unexpected side-effects this will have? or if there is a better way?
Thanks guys