Sign in to follow this  
winston123

directInput in MFC.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this