Jump to content
  • Advertisement
Sign in to follow this  
ic0de

Xinput conflict

This topic is 2708 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 made game that uses xinput in C++ but for some reason xinput comes with two different SDKs: the Directx SDK and the Windows SDK. My problem is that the Windows SDK version is only a stripped down version of the Directx one, I need to use headers from both SDKs but I have no way of specifying which header I want include or which library I want to link with and it always defaults to the windows SDK version of the API. Does anyone know how to solve this problem?

Share this post


Link to post
Share on other sites
Advertisement
When you're specifying your include/library paths in the project settings, make sure the DirectX SDK paths are above the Windows SDK in the list. That way when you try to include something like DirectX or XInput, it'll use the DirectX SDK version, and for other stuff it will use the Windows SDK.

Share this post


Link to post
Share on other sites

When you're specifying your include/library paths in the project settings, make sure the DirectX SDK paths are above the Windows SDK in the list. That way when you try to include something like DirectX or XInput, it'll use the DirectX SDK version, and for other stuff it will use the Windows SDK.


I tried that and it still defaults to the windows SDK version, btw I'm using vc++ 2010.


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!