Jump to content
  • Advertisement

Archived

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

hemihua

DirectInput problem

This topic is 6130 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 was wondering if anyone could help me with this problem i''m having with DirectInput. For some reason, when I try to acquire the keyboard, I keep getting DIERR_HANDLEEXISTS. In the SDK it says that this means the device has already been acquired, but it hasn''t, at least not by my program. I''m using LCC-Win32 3.3 latest build, and DirectX 8.0. I''ve tried passing previous DInput versions to DirectInputCreate but that doesn''t help either. Can anyone help, this is driving me nuts!

Share this post


Link to post
Share on other sites
Advertisement
Nevermind, got it working now. Turned out to be because I was initing the keyboard too early, it obviously don''t like being acquired before initialising the directdraw.

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!