Kukanani
11-01-2011 20:50:14
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?
Kukanani
11-01-2011 20:50:14
Altren
12-01-2011 08:54:49
MyGUI::Widget* focus = MyGUI::InputManager::getInstance().getMouseFocusWidget();
Also you can use MyGUI::Widget* widget = MyGUI::LayerManager::getInstance().getWidgetFromPoint(positionX, positionY);
Kukanani
12-01-2011 16:23:10
getWidgetFromPoint(positionX, positionY);