I want to get the mouse position relative to a window so I try this:
Code: Select all
CEGUI::Vector2 mCursorPosition=CEGUI::MouseCursor::getSingleton().getPosition();
CEGUI::Vector2 wndPt = CEGUI::CoordConverter::screenToWindow(*eDragDrop.window ,mCursorPosition );
Cursor coord are now Base upon my window but the problem is that the coord is Absolute. I want it relative
In this topic viewtopic.php?f=2&t=942, it said to use Window::relativeToAbsolute but this function seem not to exist in CEGUI 0.7.2..
So do you have an idea ?
sorry for my english