Jump to content
  • Advertisement

Archived

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

Mouse Control In window mode / DX8

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

Im using the d3dapp framework from microsoft, ive got a game going, but with my directinput running in a windowed mode, my cursor always moves even when my windows mouse cursor does not lie within my apps window. I would like to know how to tell if the windows cursor is within my app, and how I can change the windows cursor to my app cursor (or hide it) while it lies over my window. Theres got to be a win32 api somewhere... -Vulcan

Share this post


Link to post
Share on other sites
Advertisement
Make DI use foreground mode, the device will automaticlally be unaquired when the window looses focus. Be sure to acquire again it if you get an error on GetData

ShowCursor hides the mouse over your window, D3D supports a custim cursior aswell. look in the docs!!

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!