Jump to content
  • Advertisement


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

Problems with DirectInput

This topic is 5928 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 am using DirectX 8.1 and I''m running into a few problems. I''m pretty sure my code is correct, but I''m getting an error. The compiler is claiming that Aquire() and Unaquire() are not members of IDirectInputDevice8A. What gives? Relevant code:
DirectInput8Create(hInstance, DIRECTINPUT_VERSION, 
	IID_IDirectInput8, (void**)&m_Interface, NULL);
m_Interface->CreateDevice(GUID_SysKeyboard, &m_Keyboard, NULL);
m_Keyboard->SetCooperativeLevel(hWnd, DISCL_FOREGROUND | DISCL_NONEXCLUSIVE);
Error message: error C2039: ''Aquire'' : is not a member of ''IDirectInputDevice8A'' c:\dxsdk\include\dinput.h(1852) : see declaration of ''IDirectInputDevice8A'' FragLegs

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!