Archived

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

Direct Input Help...

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

Here''s what i''ve done to start my direct input test and for some reason it''s not working. Please tell me what i did wrong. 1. Made sure that c:\mssdk was at the top of the list in both the includes and the libs directories 2. Added dinput.lib to my link settings 3. Here''s my code myInput.cpp: LPDIRECTINPUT lpdi = NULL; void DIInit(void) { // Create the main direct input device DirectInputCreate(hInst,DIRECTINPUT_VERSION,&lpdi,NULL); } void DIKill(void) { // Release the main direct input device if(lpdi) { lpdi->Release(); } } I call these functions from my main program (this code also has a header file associated with it) When I go to compile, it tells me that DirectInputCreate is an undeclared identifier. What am i doing wrong? Thanks!

Share this post


Link to post
Share on other sites