Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Gandalf

ShowCursor problem

This topic is 6632 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I get mad! Everytime I try to use the win32 function ShowCursor() I get strange results. I make a call 2 times in my project. One to show the cursor and one to hide the cursor. But this function is not reliable. Why can´t the cursor do what I want? Gandalf the White

Share this post


Link to post
Share on other sites
Advertisement
Fix it (simple).

            
// SHOW CURSOR

int iCounter = ShowCursor(TRUE);
while(iCounter < 0)
iCounter = ShowCursor(TRUE);


// HIDE CURSOR

int iCounter = ShowCursor(FALSE);
while(iCounter >= 0)
iCounter = ShowCursor(FALSE);



Edited by - Gandalf on June 22, 2000 10:15:51 AM

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!