In my strategy game, I want to have some mouse control. I would use the Mouse move event or Mouse click event in the Message handling function, but I think that my mainloop will never get a chance to run because of the mouse moving constantly and thus diverting all attention to the message handling function...
Is there some kind of API that will help me with handling the mouse?
This is roughly what my loop and message loop looks like:
Code:While (bRunning) { if (PeekMessage(....)) { //Handle message } else { //Mainloop functions } }




Reply With Quote