How can I find out which widget is currently under the cursor? The only way I could think of was to add a mouseMoved listener and then store a pointer somewhere, which seems like overkill. Is there an easier way?
MyGUI::Widget* focus = MyGUI::InputManager::getInstance().getMouseFocusWidget();Also you can use
MyGUI::Widget* widget = MyGUI::LayerManager::getInstance().getWidgetFromPoint(positionX, positionY);