Jump to content
  • Advertisement
Sign in to follow this  
winston123

directInput in MFC.

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

hi there, is there anybody know where to put Key pressed detection in the MFC project(DIALOG based) ? In the MFC dialog based project, I initialized the directinput in the InitDialog(): DirectInput8Create CreateDevice SetDataFormat SetCooperativeLevel pIDirectInputDevice->Acquire every one return just ok.. now i need to check if there is a key pressed, pIDirectInputDevice->GetDeviceState the problem is : where should i put this in the MFC project? the project is MFC dialog, which i can not change, i just need to add the directinput in to to replace the MFC key press response... i am not very familiar with MFC, which virtual function, or which message handler should i add the Directinput checking into? thank you very much! winston

Share this post


Link to post
Share on other sites
Advertisement
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!