Jump to content
  • Advertisement
Sign in to follow this  
niazware

Cursor problem

This topic is 4488 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

hi everybody I've a strange problem concerning the mouse cursor in full screen mode, I can successfully hide the mouse cursor in full-screen mode, I use my own cursor (actually I use an image - a sprite - for my cursor and change its position according to mouse movement obtained from DirectInput), when I move the mouse to corners (specially top-right) the Windows cursor reappears and even causes problems for the game, for instance clicking at the right-top corner causes the program to close (because when I run the game from Visual Studio environment, there is a close button in the top-right corner which is being clicked) I've set the hCursor of WNDCLASSEX to null, and I've called both D3D and Windows cursor functions for hiding the cursor: SetCursor( NULL ); Device->ShowCursor( FALSE ); ShowCursor( FALSE ); what should I do? what's the problem, what's going wrong here" thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
I had the same problem. It's something with the frame of your window. When you create a window in your full screen you still have a pixel frame around the window that you probably can't see. So what I did is i created the window with no frame, I think it was the option that had popup in the name. I'm not sure, if you really want to know what it is, just pm me. Hope that helps.

Share this post


Link to post
Share on other sites
As Bliz23 said, check your window style flags and use something like WS_POPUP instead of WS_POPUPWINDOW, you don't want those minimize, maximize, frames, etc if you're running fullscreen. Also, setting the cursor to null/hiding it will only cause it to not appear, it will still be perfectly functional, only invisible.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!