Active mouse with CEGUI
Posted: Tue Nov 07, 2006 13:55
I am working on CEGUI with OGRE and OIS....And I have made the window mouse non-excusive with the window. But there are two mouses appear when i inject the following code.
I want the CEGUI mouse arrow appears when my mouse is enter into the window, and I want the cursor back to normal when it outside the window.
Any suggestions? thanks!
Code: Select all
void Game::mouseMoved( const OIS::MouseEvent &e )
{
CEGUI::System::getSingleton().injectMouseMove(e.state.relX, e.state.relY);
}
I want the CEGUI mouse arrow appears when my mouse is enter into the window, and I want the cursor back to normal when it outside the window.
Any suggestions? thanks!