Archived

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

Windows Threads for input

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

Hello, I am developing a 2d windows game using directx 7.0 and M$ Visual C++ 6.0. I am having a small problem with my input. I currently have my windows stuff in one thread and the main game in another. This works fine. But I want to put my input functions in another thread so that I can get new input anytime and not have to exit a graphic loop to read in the new keys. I can get it to do the graphics but the keyboard is not working. I can alt-tab out of the program. So it seems that my input is not being taking by Direct Input. I am at school right now so I can''t paste any code but I would appreacite any sample code or idea''s that you can give me. I am getting readdy for final exams so I can''t get much time in for programming and so far this is the only problem I ran into so far. Thank you for you time. Minerjr

Share this post


Link to post
Share on other sites