Jump to content
  • Advertisement

Archived

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

psykr

Custom Cursors ala Direct3D

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

Well, I''ve been working on a game engine, and I was digging through The Zen of Direct3D (IMO it''s a horrible book), and near the last chapter, I noticed some code for a custom mouse cursor. So.. I tried it, and.. it didn''t work. The author''s code tells you to use DirectInput8 to acquire the mouse, and then in a CZenMouse class keep a POINT structure that converts the relative coordinates passed by DirectInput into screen coordinates, and then to pass those into IDirect3DDevice8::SetCursor(). Now the problems. This does not work in fullscreen mode, and it works in windowed mode, but only if I don''t call IDirectInputDevice8::Acquire() on the mouse object. Why is this happening? Am I just a crap coder? (Don''t answer that.)

Share this post


Link to post
Share on other sites
Advertisement
personally, i never bothered with that and just made a "mouse" by drawing a small ortho quad with a texture on it

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!