Jump to content
  • Advertisement

Archived

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

NightWraith

DirectInput, Mouse Cursors and Black Boxes

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

Just started learning DirectX 7, got to grips with direct draw, and getting the hang of Direct Input, however I have one (annoying) problem. I do all the necissary DirectInput creation stuff, and acquire the mouse, this (so I''ve been told) is supposed to remove the windows mouse cursor from the screen, which it does, but puts a big black box (about the same size as the black box which replaces the mouse cursor when u do a ShowCursor(0) windows call in a DirectX window.. which is why I think its mouse related...) on the screen which covers everything else. How do i get rid of it?? (without using correcting fluid?) any help is much appreciated...

Share this post


Link to post
Share on other sites
Advertisement
try doing

SetCursor(NULL);

before you set up direct input. i''m not sure what your problem is because acquiring the mouse does get rid of the cursor for me.

Share this post


Link to post
Share on other sites
Nope, afraid it didn''t work... have found out the only time this occours is when the curser is an I-Beam whilst the app is starting up (eg the cursors over a notepad window before my app goes into DirectX ''mode'')...

dont know if this''ll help anyone get a better idea of how to fix this (annoying) problem

Share this post


Link to post
Share on other sites
Stupid idea, but if there''s a 1% chance it might help, then here you go... isn''t there a call to directly choose which mouse cursor is being shown? Try calling that to change to a different cursor before starting DirectX.

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!