[solved] Mouse Position relative to a window (in relative)
Posted: Sun Dec 25, 2011 13:55
Hi,
I want to get the mouse position relative to a window so I try this:
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
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