Jump to content
  • Advertisement

Archived

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

farhanx

can we use DInput7 while sdk is DX8

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

problem is when ever i try to use directinput 7 object it gives me errors while when i use direct8 input obj then it work fine.... why is that and how can i use older version of directinput???? this code is working DirectInput8Create(h1,DIRECTINPUT_VERSION,IID_IDirectInput8,(void**)&lpDI,NULL); if(FAILED(lpDI->CreateDevice(GUID_SysKeyboard,&lpDIkeyboard,NULL))) { // ERROR } while i wana use dinput7 but it gives me so many errors on DirectInputCreate() and says it is undeclear identifier.... nor this DirectInputCreateEx() is working , and error says undeclear identifier.

Share this post


Link to post
Share on other sites
Advertisement
I''m not sure if the SDK provides the headers for previous version''s interfaces, so it may not compile. It would be a lot easier just to downgrade to DX7 or upgrade your dinput code.

Share this post


Link to post
Share on other sites
The DirectX 8 SDK (as well as 9) does include the headers for all the previous interface versions. You just have to use a define to indicate which version of the interface you want to use. Look in the dinput.h header for a hint.

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!