Jump to content
  • Advertisement
Sign in to follow this  
Plarin

Initalizing Direct Input

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

Advertisement
Quote:
Original post by sirlemonhead
lol poor Steve. that link forever resides in his clipboard..

dinput.lib and dinput.h did exist - they're in my dx6 sdk at least.
Yep, it's in my bookmarks [smile]

Ah, I wasn't sure - it's not in the more recent SDKs, and I don't think it's in the DX8 SDK either. Still, good to know...

Share this post


Link to post
Share on other sites
Thanks, deleting the include library directive was all it took.

Although, it would be nice to be able to get rid of

c:\program files\microsoft directx sdk (march 2008)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800

for every .cpp that gets compiled.

[Edited by - Plarin on June 12, 2008 5:15:43 PM]

Share this post


Link to post
Share on other sites
Quote:
Original post by sirlemonhead
define it in a 'main' header or something so..

#define DIRECTINPUT_VERSION 0x0800
Or define it in your project settings so it's automatically defined for all .cpp files.

The best way to get rid of that warning is to go and delete all of your DirectInput code in any case - using it for keyboard or mouse input is an extremely bad idea, for the reasons outlined in the link I posted above.

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!