Page 1 of 1

getCursorControl()->setVisible() sometimes not working

Posted: Mon Nov 02, 2009 10:04 am
by bobyBola
i'm using win32 and directx9 for my game, sometimes when i call setVisible(true), the cursor won't show up... from ten times run.... three or two times the cursor won't show up. what happend??

Posted: Mon Nov 02, 2009 10:34 am
by hybrid
Maybe you're not using Irrlicht 1.6 - we did add some fixes for cursor and Win32 device.

Posted: Mon Nov 02, 2009 2:54 pm
by Lonesome Ducky
If you're including windows.h, you could always do

Code: Select all

ShowCursor(true);

Posted: Mon Nov 02, 2009 3:45 pm
by CuteAlien
Lonesome Ducky wrote:If you're including windows.h, you could always do

Code: Select all

ShowCursor(true);
That's more or less what Irrlicht is doing now. Actually it calls ShowCursor(true) as long until it is visible, as cursors use a counter on Windows.

But there had been problems with Irrlicht before 1.6, as the state did sometimes not switch while a mouse-button was pressed. If it is a problem with 1.6 it would be great to have some code to reproduce this problem.