Windows Threads for input
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
Post some code for the input thread, it''s to hard to say without seeing some of it
Magmai Kai Holmlor
- The disgruntled & disillusioned
Magmai Kai Holmlor
- The disgruntled & disillusioned
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement