Jump to content
  • Advertisement
Sign in to follow this  
d000hg

Getting mouse input from fullscreen D3D?

This topic is 4835 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've implemented a simple mouse-driven GUI which appears to work well when I run my D3D app in a window. However in full-screen mode, it's as if the window is not recognised by the mouse - the cursor is affected by the program running underneath, and clicking causes my app to be minimised and the mouse event to go to the other program. Is there anything in particular I should do to remedy this - I'm using straight Win32 here not DirectInput.

Share this post


Link to post
Share on other sites
Advertisement
Make sure you have set the mouse to be exclusive to the application when you make the mouse object.

ace

Share this post


Link to post
Share on other sites
Quote:
Original post by ace_lovegrove
Make sure you have set the mouse to be exclusive to the application when you make the mouse object.

He's not using DInput [smile].

@d000hg: Sounds like a weird problem. Do you handle mouse messages correctly? Do you use DefWindowProc for messages you don't handle?

Share this post


Link to post
Share on other sites
It happens when you click anywhere? I remember having a problem like this where I could click in the top-right or top-left corners of the screen and the app would change, since XP has rounded corners on the windows. I solved it by creating my window with just the WS_POPUP style.

Share this post


Link to post
Share on other sites
Found it... the window is not resized to take up the whole screen, so even though it's fullscreen rendering there's no window existing underneath some parts.

What a dumb mistake!

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!