Initalizing Direct Input

Started by
5 comments, last by Evil Steve 15 years, 10 months ago
You only need dinput8.lib, not dinput.lib (Which doesn't exist, and I don't know if it ever used to exist). However, I hope you're not using it for keyboard or mouse input.
Advertisement
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.
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...
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]
define it in a 'main' header or something so..

#define DIRECTINPUT_VERSION 0x0800
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.

This topic is closed to new replies.

Advertisement