Page 1 of 1

Mouse cursor gone forever

Posted: Mon Feb 12, 2007 00:39
by Rakkar
I'm using Ogre with CEGUI and OIS. If I alt-tab or hit a breakpoint out one time, everything works OK. If I alt-tab or hit a breakpoint out a second time, my mouse cursor is gone forever. I think the windows mouse cursor for windows is set to invisible, and not properly set to visible again when I alt-tab back.

Anyone else encounter this?

Posted: Sun Apr 22, 2007 22:08
by tgraupmann
Yes. I have seen this. I just have the game track whether the mouse is shown or not.

And in the game loop I check if the window is active.

Code: Select all

if (m_Window->isActive())


If the window is active then the mouse is hidden or shown.